[fpc-pascal] TextFile Hint

Gilles MARCOU g.marcou at chimie.u-strasbg.fr
Thu Jul 24 13:52:59 CEST 2008


Hi,

I also have regularly long lists of hints warning me that my TextFile
variables are not initialized. This is so because my TextFile variables
are assigned through AssignFile statements.

I so this concern regularly on the forum and apparently the problem
should have found a solution in fpc 2.2.0. But I am working with this
version of the compiler and I continue to get this Hint again and again.
I am also working with Lazarus 0.9.24beta.

Therefore I have two questions:
-Is there a way to avoid this particular Hint to be printed during
compilation?
-Is there a "cleaner" way to work with file that I want to access line
by line? I am currently using readln(X,buf) statements with X a TextFile
and buf a string.

Thanks for any advice,
Gilles Marcou





More information about the fpc-pascal mailing list