I tried writing a tool to parse my EQ2 log file, but cant seem to get it to work. I have included the code and sample files below.
In short when you try and parse the log file for EQ2 you get an odd error, but when you read a different text file it works just fine.
If anyone has any in-site as to what's going on and possibly an idea on how to fix it, I would appreciate the assistance.
If this has already been covered (I searched for about 30 min looking for an existing topic on this.) just point me in the correct direction.
CODE
Constants
FileName = C:\Macros\Sample1.txt
TempZ=0
End
//Example
Constructs
File1=file
end
FileOpen File1, $FileName
FileReset File1
while 1 = 1
FileRead File1, TempZ
timestamp {LoopNo} - $TempZ
if {EOF} = True
break
End
End
FileClose File1
FileName = C:\Macros\Sample1.txt
TempZ=0
End
//Example
Constructs
File1=file
end
FileOpen File1, $FileName
FileReset File1
while 1 = 1
FileRead File1, TempZ
timestamp {LoopNo} - $TempZ
if {EOF} = True
break
End
End
FileClose File1
Error message on Sample1.txt is
QUOTE
Error: Could not find list, dataset, or form
Module: ReadMuLog.mac Line: 17
Module: ReadMuLog.mac Line: 17
Results for Sample2.txt file.
CODE
TimeStamp: 10/26/2009 05:59:56:794 am - 1 - This is line one.
TimeStamp: 10/26/2009 05:59:56:794 am - 2 - This is line Two.
TimeStamp: 10/26/2009 05:59:56:805 am - 3 - This is line Three.
TimeStamp: 10/26/2009 05:59:56:805 am - 4 - This is line Four.
TimeStamp: 10/26/2009 05:59:56:794 am - 2 - This is line Two.
TimeStamp: 10/26/2009 05:59:56:805 am - 3 - This is line Three.
TimeStamp: 10/26/2009 05:59:56:805 am - 4 - This is line Four.
