ReNamer:Pascal Script:Read file content
Revision as of 20:45, 2 August 2009 by Den4b (talk | contribs) (moved ReNamer:Pascal Script:Read lines from file to ReNamer:Pascal Script:Read file content: more general name)
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.