12 Replies Latest reply on Feb 24, 2009 2:28 PM by Almudever

    Problem at read files

    Almudever Level 1
      I have opened, by fileIO xtra, several files with myFile01, myFile02, myFile03... :

      myFile01 = xtra ("fileio").new()
      openFile(myFile01,the moviePath&"Test"&fileSep&"Tema_1"&fileSep&"t01.txt",1)
      [...]

      Later I create a list (selectedList) with the name of all of them myFile01, myFile02, myFile03...

      By random I mess up that list. And finally I extract by this way:

      myQuiz_1 = selectedList.getAt(1)

      text_pregunta1 = readLine(myQuiz_1)

      Here, it appears a script error because myQuiz_1 is not the same that myFile01. And it doesn't read the file.
      How I can solve this problem?