home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13109 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
  3. From: d88-jwa@dront.nada.kth.se (Jon W{tte)
  4. Subject: Re: Mac programming problem
  5. In-Reply-To: joel@iastate.edu's message of Tue, 28 Jul 1992 12:29:10 GMT
  6. Message-ID: <D88-JWA.92Jul28211708@dront.nada.kth.se>
  7. Originator: d88-jwa@dront.nada.kth.se
  8. Sender: usenet@kth.se (Usenet)
  9. Nntp-Posting-Host: dront.nada.kth.se
  10. Organization: Royal Institute of Technology, Stockholm, Sweden
  11. References: <joel.712326550@vincent1.iastate.edu>
  12. Date: Tue, 28 Jul 1992 20:17:08 GMT
  13. Lines: 28
  14.  
  15. > joel@iastate.edu (Joel A Rybolt) writes:
  16.  
  17.    The problem is I learned how to program in C on a UNIX machine and have no idea
  18.    how to simply open the file I want to read from.  This file will be in the same
  19.    folder as the program and always called the same thing.  i would like to open
  20.    the file and read blocks of data from it, not all at once !
  21.  
  22.  
  23. You could either "FSOpen" "FSRead" "FSClose" or you could try
  24. using fopen for a real Q&D !
  25.  
  26.    My other problem involves printing.  I wold like to bypass messing with the print manager and instead get a "direct connectin".  I want to send it some ESC 
  27.    codes (15cpi, 8lines per inch, ect..).  Then just dump my charecter to it
  28.    instead of the screen.
  29.  
  30. You can't. Really. Instead, ask for 72 dpi resolution, and calculate
  31. your MoveTos and DrawTexts to place stuff where you want it.
  32.  
  33.    Any help is appreciated.  Sorry for any readabilty problems as my terminal has
  34.    a hard time working with this system.
  35.  
  36. You could also try HyperCard, which can read files and generate reports.
  37.  
  38. -- 
  39.       Jon W{tte, Svartmangatan 18, S-111 29 Stockholm, Sweden
  40.                   h+@nada.kth.se    +46-10-141652
  41.  
  42.               My cat usually runs around on the roof.
  43.