Using OpenFile() in script as I wanted to create a publication that will run from CD-ROM and not require installation. I have a problem as the function will not work when reading from CD-ROM.
I expect this has to do with read only of CDs, but I only want to read from text file and not write. Or am I using incorrect code for what I want to to.
Code is below:
Code:
var TextPulled = OpenFile(SYSTEM_PUBLICATION_DIR + "List.txt")
while (TextPulled.EndOfFile() == false)
{
featureArray[i] = TextPulled.ReadLine();
}
TextPulled.Close();