Difference between revisions of "ReNamer:Pascal Script:Read file content"
Jump to navigation
Jump to search
(Created page with '== Read lines from file == There are couple of functions available which make this task simple: '''FileReadLine''' and '''FileCountLines'''. ...') |
m (moved ReNamer:Pascal Script:Read lines from file to ReNamer:Pascal Script:Read file content: more general name) |
(No difference)
|
Revision as of 20:45, 2 August 2009
Read lines from file
There are couple of functions available which make this task simple: FileReadLine and FileCountLines.
For example, if you have a text file containing names (one name per line) which you would like to assign to a list of files, you can use the script below:
var I: Integer; begin I := I + 1; FileName := FileReadLine('C:\Names.txt', I); end.