|
|
#1 |
|
Forum King
|
is it possible to read every line of a textfile and use every entry in a string?
what if this requires more than twenty strings? can i reuse the same string name later. i want nsis to read lines of a textfile and use the lines for further actions (lets say messagebox for instance) |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Like you said, there are only 20 strings available, and NSIS max string length is 1024 (the default), so no, you can't save the whole text file in memory if it has more than 20 lines.
Why can't you process line by line and just save the lines you need? NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Forum King
|
well, thats what i asked for. maybe you could post the code to report every line of a text file in a messagebox.
i think it should be possible with just one string, but i am bad in strings. |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Read the code I wrote here. Just replace the FileWrite and the strring comparsion with a message box.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Jul 2011
Posts: 47
|
Quote:
improving a few things in my coding. and this code helped tremendously. you and Afrow UK are the only ones i've seen that actually help. most waste their time patronizing. that time they wasted, they could've just created a quick example. something i don't understand. thank you to you and Afrow UK. You guys are very generous, Bless you guys. |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|