How to read in a text file with linefeeds
Hi
I'm trying to read a text file into a textFrame. It reads in but is not including linefeeds so it's just one big long line of text. I'm using the following code to read the file. I attempted to insert a \n character after each readln() but that didn't help. I also tried creating a variable that the readln() was stuffed into before setting the textFrame.contents to the variable, but that didn't work either. I'm stumped. Any help would be appreciated, thanks.
while (! notesDoc.eof) {
noteTextRef.contents += notesDoc.readln();
}
Doug