home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1446 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: senator-bedfellow.mit.edu!red-branch!rid
  2. From: rid@red-branch.MIT.EDU (Shawna Grimm)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: C
  5. Date: 19 Jan 1996 04:08:40 GMT
  6. Organization: Massachvsetts Institvte of Technology
  7. Message-ID: <4dn5g8$ba8@senator-bedfellow.MIT.EDU>
  8. References: <9601181801.AA0003c@cliffe.demon.co.uk>
  9. NNTP-Posting-Host: red-branch.mit.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Steven Chapman (steve@cliffe.demon.co.uk) typed in the following on Thu, 18 Jan 96 18:01:21 GMT:
  13.  
  14. : I am trying to get this src to compile and work but i need the output
  15. : to go to a file in Ram: and not the CON: window that it opens.
  16.  
  17. : I now that i have too change the file pointer somehow but a can not fine
  18. : out how.
  19.  
  20. : Please Help.
  21.  
  22.  
  23. : **********************
  24. : ToolType  PROG=list C:
  25. : **********************
  26.  
  27.  
  28.  
  29.  
  30. :  if(!argc) {
  31. :     if(!(fh = Open("CON:10/10/400/400/WBtest",MODE_NEWFILE)))
  32. :         exit(10);
  33. Try this instead:
  34.         if(!(fh = Open("RAM:output", MODE_NEWFIL)))
  35.  
  36.  
  37. : -- 
  38. : =========================================================
  39. : |  Steven Chapman - steve@cliffe.demon.co.uk (Private ) |
  40. : | Amiga 4000/030, Workbench 3.1, Kickstart 3, 1 Gig HD  |
  41. : |          4 meg Fast Ram, 2 Meg Chip Ram.              |
  42. : =========================================================
  43.  
  44. - Lars
  45.