3 Replies Latest reply on Dec 22, 2011 6:53 AM by kglad

    how to read text file

    zyhsu Level 1

      Dear sir:


      I try to read a txt file and split the content into variables, I use the following:


      var fileURL = fl.browseForFileURL("open", "Select file");

      var str = FLfile.read( fileURL);


      the problem is the str get the whole test file, if the text file has multiple line,

      can I read the file each line by line, such as a function like readLine or something,

      so the str only get information for each line?


      Thanks a lot