Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> error 35 text file type was expected pp 322</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error 35                Text File Type was Expected                  pp 322

 Source:  Compiler

 Cause:   Current statement requires Text file type.

 Remedy:  Examine the statement ahead of the error cursor for the above
          condition.  Check the file Type declaration.


 ----------------------------------------------------------------------------


 Example:
       VAR
          FileVar : File of Integer;  { Declare a file of type Integer      }

       BEGIN
          Reset  (FileVar) ;          { Open the file handle                }
          ReadLn (FileVar) ;          { Wrong   - ReadLn requires Text type }
          Read   (FileVar) ;          { Correct - Read applies to all types }
       END.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson