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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: