<pre>-- Creates a file if none already exists.function readFile filePath  open file filePath  read from file filePath until end  close file filePath  return itend readFile-- Does not create a file if none already exists.function readFile filePath  if there is not a file filePath then return empty  open file filePath  read from file filePath until end  close file filePath  return itend readFile-- Does not create a file if none already exists.-- Secure version, except for files > 30K limit.function readFile filePath  if there is not a file filePath then return "No such file"  open file filePath  if the result is not empty then return "Error while opening file"  read from file filePath until end  if the result is not empty then return "Error while reading file"  close file filePath  if the result is not empty then return "Error while closing file"  return itend readFile</pre>