home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8640 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.3 KB

  1. Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!sol.ctr.columbia.edu!news.unomaha.edu!cwis.unomaha.edu!stratton
  2. From: stratton@cwis.unomaha.edu (Dan Stratton)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Help w/ THINK Pascal!
  5. Message-ID: <1993Jan27.223142.9232@news.unomaha.edu>
  6. Date: 27 Jan 93 22:31:42 GMT
  7. Sender: news@news.unomaha.edu (UNO Network News Server)
  8. Organization: University of Nebraska at Omaha
  9. Lines: 26
  10.  
  11. I am new to Pascal programming and having a problem understanding why
  12. I cannot read from a standard text file in to my program, using
  13. reset(FileName); a sample copy of code follows:
  14.  
  15. begin                                   {Main Program}
  16.  open(SalesData);
  17.   while not eof(SalesData) do
  18.     begin
  19.        read(SalesData, Name);
  20.           for X := 1 to 4 do
  21.               read(SalesData, SalesNumbers[X]);
  22.               
  23. I have tried reset & open but neither will work.
  24. This has worked for me in the past using the universitys compiler,
  25. but will not work for me using THINK Pascal and my personal Mac.
  26. Any ideas?
  27.  
  28. Thanks in advance for your help!
  29. Dan
  30.  
  31. stratton@cwis.unomaha.edu
  32. -- 
  33.                --------------------------------------------
  34.                                Dan Stratton
  35.                     INTERNET: stratton@cwis.unomaha.edu
  36.                           FIDONET: 1:285/14.300
  37.