#158078 - 2006-03-03 01:00 AM
Re: Is there a better way to deal with data in a text file?
|
IanDubbelboer
Fresh Scripter
Registered: 2004-06-25
Posts: 24
|
Thanks for the input. 
I'm not sure what I'm going to settle on yet, but I came up with another possible idea.
In this script I have a messaging function. Basically, I CALLMESSAGE($MESSAGENUMBER, $LANGUAGE, $VAR1, $VAR2...) and then use the result to correctly show a message to the screen or to a log file.
I was thinking I might be able to call the message function to generate predefined search strings that I could look for. I could use a | instead of passing a $VAR and then use split on the resulting message INSTR to figure out where the Variable would be in the string regardless of language. It should also make things more resistent to changes to the wording in my translation file as I would not have to update the log reader function every time I changed wording.
I still have to try it, but even if it doesn't work the INI ideas should. Thanks again.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1644 anonymous users online.
|
|
|