Code: Select all
fileread = open('linesOfText', 'r')
buff = fileread.read()
So I figure its some kind of security issue. Anyone know why?
Code: Select all
fileread = open('linesOfText', 'r')
buff = fileread.read()
Code: Select all
try:
file open code...
except Exception as e:
import syslog
syslog.syslog( str(e) )Code: Select all
with open(FileName, 'rt') as file_obj:
FileData = file_obj.read()
file_obj.close()