ReNamer:Pascal Script:Read file content: Difference between revisions
		
		
		
		
		
		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'''. ...')  | 
			
(No difference) 
 | 
Revision as of 19:43, 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.