home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / pascal / 6397 < prev    next >
Encoding:
Text File  |  1992-11-08  |  875 b   |  31 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!tulane!jameel
  3. From: jameel@cs.tulane.edu (Akhtar Jameel)
  4. Subject: HELP with assigning NAME TO A FILE
  5. Message-ID: <1992Nov8.080623.24570@cs.tulane.edu>
  6. Sender: news@cs.tulane.edu
  7. Organization: Computer Science Dept., Tulane Univ., New Orleans, LA
  8. Distribution: usa
  9. Date: Sun, 8 Nov 1992 08:06:23 GMT
  10. Nntp-Posting-Host-[nntpd-24512]: amor
  11. Lines: 18
  12.  
  13. I declare a file in the program statement as
  14.     program(input,output,proto);
  15.     .
  16.     .
  17.     proto : text;
  18.     fname : packed array[1..20] of char;
  19.     .
  20.     .
  21.     fname := 'genuine';
  22.     {NOW I want to assign the name 'genuine' to "proto"...}
  23.  
  24.     reset(proto,genuine);      {from a previous reference this should do it
  25.                 but not on my microvax running vms 5.4-3,
  26.                 standard pascal}
  27.  
  28.  
  29. Now, what du ya say!
  30. jameel@rex.cs.tulane.edu
  31.