WikiD Instructables

>

Read Line / Read Paragraph

Read a record (a line or paragraph) from a text file.

Line/Paragraph is the name of a variable containing the record number to read. If unspecified, the record after the previously read one *in that file* is read. A variable is used in place of a number here to permit e.g. reading a random record via the Variable Randomize action.

If the end of the file was reached before the specified record number was found, it will contain the value EOF. The next line number then resets to 1.

Blank lines and any newline character at the end of a file are always ignored.

Don't try to read a non-text file with this, the results will probably be disastrous.

The action is not very efficient for reading all the records in a file, since it starts from the beginning each time.

<>

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies