Reading text file and appending to start
var file = File(myFilePath);
file.open("a", "TEXT");
//alert("file opened! it is: \n" + file);
while (!file.eof){ // Loop doesn't trigger here
var line = file.readln();
alert("line is:\n" + line);
}
file.close();
myFilePath is a string containing a file path to a text file on my disk.
Two questions here:
1) Why doesn't the while loop trigger? Is the position eof by default when opening up a file for append? ("a")
2) How do I open up a file for append-to-start ("a+")
The case is this:
I have an already existing file with some object properties. I want to open up said file and add additional properties to the top/start of it.

