Only good like I found.
http://www.lysator.liu.se/~ingemar/tp45d4/think.html
I used to do Pascal, but its a long time ago. I think theres methods (called procedures in Pascal ) called:
System.Read();
System.ReadLn()'
System.Write();
System.WriteLn(); (If your using System, then you don't need the "System." in front)
I not sure of parameters, but ReadLn/WriteLn are for text files. You also have to use the assignfile method to open, then the closefile to close a file. Heres some code I found/put together.
var file: textfile;
Assignfile(file, 'fileName.txt'); // assigns the filename to the file variable
Rewrite(file); //Opens the file(I think that creates the file, or creates a new one if that file exists. There is also reset to open a file, but its different to rewrite)
writeln(file, 'string written into text file');//Writes the string to the file
closefile(file);//Closes the file
Hope that helps