Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-07

TextFile Hint

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gilles MARCOU

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

Reply by email