I want to read a file and echo it to the console, but whenever i do openpc("pathtofile"); it makes an infinite loop saying Line:
this is my code:
function openpc(%path){
%file = new FileObject();
%file.openForRead(%path);
while(!%file.isEoF){
$pcContent = %file.readLine();
echo("Line: "@$pcContent);
}
}
I want to do it client sidely