For a File object named textObj, use the following syntax:
var textObj = OpenFile("d:\\myText.txt")
while (textObj.EndOfFile() == false)
{
textObj.ReadLine()
}
Note:
Pathnames normally contain backslashes e.g. d:\welcome.txt, all single backslashes should be entered as double backslashes i.e. d:\\welcome.txt.