Turbo Pascal Textfile writing.

Soldato
Joined
18 Nov 2011
Posts
4,227
Location
London
hey guys,

I am programming a game in pascal currently and i have an issue with how to write onto the screen from a text file,

i want to read the information from the textfile and display it on my screen for the user.

This is the procedure i have,


procedure Highscoredisplay;

Var UserFile : Text;
FileName, TFile : String;
Fname, txt:string;
name:string;
userfilewrite:text;

begin;
Assign (UserFile,'Highscores');

readln(userfile);

Writeln(Userfile);

end;

The issue is the Writeln part,

That line means that i write a line within the textfile,

Does anyone know the line of code or a way for me to display the text from that file within my program.

Thanks.
 
Back
Top Bottom