Error reading a file

Posted by Ksajal on Thu 06 May 2010 07:37 AM — 1 posts, 8,121 views.

#0
I have another problem with reading from an .xml file where I have my triggers.
When I try this (the example from io.input):

f = io.input ("system_tracking.xml")
repeat
  s = f:read ("*l") -- read one line
  if s then  -- if not end of file (EOF)
   print (s) -- print that line
  end
until not s  -- until end of file

f:close ()  -- close that file now

I get this message:

ÿþ<e\(o 

I am absolutely clueless to what it means, can someone please help me?

EDIT: After almost deleting the file out of shear frustration, I simply selected all its content, and pasted it into another file with the same name.
It works, except for a few mistakes in the script that I am trying to fix.

EDIT2: Fixed all the typos in my script, it works.