function openpc(%path){%file = new FileObject();%file.openForRead(%path);while(!%file.isEoF){$pcContent = %file.readLine();echo("Line: "@$pcContent);}}
%file.isEOF is a method. It should be %file.isEOF().
Also, be sure to close and delete the file to avoid issues.
Code: [Select]function openpc(%path){%file = new FileObject();%file.openForRead(%path);while(!%file.isEoF()){$pcContent = %file.readLine();echo("Line: "@$pcContent);}%file.close();%file.delete();}
function openpc(%path){%file = new FileObject();%file.openForRead(%path);while(!%file.isEoF()){$pcContent = %file.readLine();echo("Line: "@$pcContent);}%file.close();%file.delete();}
Resources ListA list of resources to aid you or for you to learn from. This thread encourages members to contribute in any way they can, so don't be shy!Resources by otto-san (10293)File Object Tutorialhttp://forum.blockland.us/index.php?topic=151078.0