home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!sol.ctr.columbia.edu!news.unomaha.edu!cwis.unomaha.edu!stratton
- From: stratton@cwis.unomaha.edu (Dan Stratton)
- Newsgroups: comp.lang.pascal
- Subject: Help w/ THINK Pascal!
- Message-ID: <1993Jan27.223142.9232@news.unomaha.edu>
- Date: 27 Jan 93 22:31:42 GMT
- Sender: news@news.unomaha.edu (UNO Network News Server)
- Organization: University of Nebraska at Omaha
- Lines: 26
-
- I am new to Pascal programming and having a problem understanding why
- I cannot read from a standard text file in to my program, using
- reset(FileName); a sample copy of code follows:
-
- begin {Main Program}
- open(SalesData);
- while not eof(SalesData) do
- begin
- read(SalesData, Name);
- for X := 1 to 4 do
- read(SalesData, SalesNumbers[X]);
-
- I have tried reset & open but neither will work.
- This has worked for me in the past using the universitys compiler,
- but will not work for me using THINK Pascal and my personal Mac.
- Any ideas?
-
- Thanks in advance for your help!
- Dan
-
- stratton@cwis.unomaha.edu
- --
- --------------------------------------------
- Dan Stratton
- INTERNET: stratton@cwis.unomaha.edu
- FIDONET: 1:285/14.300
-