Archive: Parsing a string of two tokens


Parsing a string of two tokens
I'm new to NSIS, and am having trouble figuring out a function that can do what I'm after. I've tried WordFind and WordReplace with limited success unfortunately, perhaps I'm just not using them correctly.

Basically I've got an installer that loops through a text file. On each line of this text file is a filename and a size, separated by a space. For example:

file1.txt 100
this is file2.txt 140

I need to read and support filenames with spaces as well, and was wondering how I can basically stuff $1 with the filename, and $2 with the file size reliably.

Thanks for the help.
~G~


There are some useful functions at wiki, most likely you'd find one ready for you, or modify one to suit your needs.

http://nsis.sourceforge.net/Category...ons_%26_Macros


http://nsis.sourceforge.net/Get_last...rest_of_string

-Stu


Afrow, that was it!

Cheers