PDA

View Full Version : Saving %SerialNumber% to a file (Newbie)


Bob Cameron
08-10-2005, 02:26 PM
I am trying to save the user's serial number (%SerialNumber%) to a file so that it can be accessed by my application for registration purposes. I have tried TextFile.WriteFromString and TextFile.WriteFromTable. Since lua does not require declaration of a variable type, it is unclear to me how I can convert it to a string in order to save it to a file.

Any help would be appreciated.

Bob

Adam
08-10-2005, 03:28 PM
Serial = SessionVar.Expand("%SerialNumber%");
TextFile.WriteFromString("C:\\file.txt", Serial, false);

This should do the trick.

Adam Kapilik