Skip to content

Instantly share code, notes, and snippets.

@ril3y
Created March 1, 2019 18:03
Show Gist options
  • Save ril3y/3f6fb6797781498022c047cc235f8188 to your computer and use it in GitHub Desktop.
Save ril3y/3f6fb6797781498022c047cc235f8188 to your computer and use it in GitHub Desktop.
def cat(filename, path="/flash"):
try:
f = open(path+'filename','r')
for line in f.readlines():
print line
catch:
print("Err opening file")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment