Question
Difficulty reading file into variable.
I'm having trouble reading a file into a string and can't figure out why.
var myFile = new File( '/path/to/my/file.xml' );
var myFileString = myFile.read();
alert( myFileString.length ); // displays 0
Does anybody know what could be going on here? It seems like such a simple operation.
Thanks.