Re: Opening files with Pascal
[ Follow Ups ] [ Post Followup ] [ Message Board for Team 27297 ]

Posted by Andrew - Team 27297 on March 02, 19100 at 23:47:20:

In Reply to: Opening files with Pascal posted by daniel on January 15, 19100 at 11:28:32:

: I have set up a program to read lines of text from a file, putting each line in a separate variable, but when the program displays the content of these variables, it will sometimes place trash typing after the actual content. Why is this? Please email me if you know

: thanks

Try setting the variables to blank strings before reading.
Pascal does not clear the memory to which variables have been assigned, and therefore the variable may contain 'trash' once created.


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:
Optional Link URL:
Link Title:
Optional Image URL:

Sorry, we are no longer accepting entries to this message board.


[ Follow Ups ] [ Post Followup ] [ Message Board for Team 27297 ]