2) I used Document.Text to get content of a file, e.g.:
Code: Select all
if (MainApp.OpenFile("sessions.csv"))
{
sStr = trim(Document.Text);
TRJDocument.Close;
MainApp.DocumentIndex = currentDoc;
}
would be read thru Document.Text, would have length of 13 (without trim it'd be 15), and not 11. Newline format in the file is Unix, but it is read as if it was Windows. Size of a file is 11 bytes. Now, this too may be by design but anyway I hope my report will save you some some hair pulling.aaa
bbb
zxc