Anything that I find that has %file = newFileObject; or anything like that isn't working. I know for sure it's written correctly, but whenever I do the command, etc. that uses it, the file never gets made.
function readFile(%file) { if(%file $= "" || !%file) { %filename = "config/server/test.txt"; } else { %filename = %file; } %file = new FileObject(); %file.openForRead(%filename); while(!%file.isEOF()) { %line = %file.readLine(); echo(%line); } %file.close(); %file.delete();}