05-02-2020 11:43 PM
Hello
How can I open a file on flash from Guestshell with Python?
Thanks.
05-03-2020 12:46 AM
05-03-2020 04:33 AM
05-03-2020 03:26 AM
file = open('/bootflash/test.txt','r') print file.read() file.close()
OR
with open('/bootflash/test.txt','r') as file: print file.read()
05-04-2020 10:18 PM
Thank you for the reply.
That works. Flash or Bootflash depends on the device type.
05-05-2020 06:34 AM
Please dont forget to rate helpful posts and accept solutions so the post is helpful for other users.
Thank you
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide