Read Multi-Lines In One Variable - Forum

Forum Navigation
You need to log in to create posts and topics.

Read Multi-Lines In One Variable

Hi guys, I need to read multi-lines in one variable.

Example: I want to read a text file into variable, but only line 2 and 3 of the text file and not the complete text file.

Thank You

Hi!

You can, for example, like this:

FileOpenBox "Select a file" "Select a file|*.txt" "[PubDir]" "[PathFile]" ""
FileRead "[PathFile]" "2" "[Line2]"
FileRead "[PathFile]" "3" "[Line3]"
SetVar "[Line23]" "[Line2][Line3]"

impactband4u and proforma.guyot have reacted to this post.
impactband4uproforma.guyot