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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.iastate.edu!vincent1.iastate.edu!joel
  3. From: joel@iastate.edu (Joel A Rybolt)
  4. Subject: Mac programming problem
  5. Message-ID: <joel.712326550@vincent1.iastate.edu>
  6. Keywords: HELP
  7. Sender: news@news.iastate.edu (USENET News System)
  8. Organization: Iowa State University, Ames IA
  9. Date: Tue, 28 Jul 1992 12:29:10 GMT
  10. Lines: 35
  11.  
  12. Help ...
  13.  
  14. I am currently working on a project involving Think C 5.0 on the Macintosh.
  15. Unfortunatly I have never programmed on a Mac before and this was going to be
  16. quick and simple for a friend.  In this project I am trying to read in a text
  17. file and print it out in one of three various label formats.  I have the print
  18. routines down and when inputting data from the console I can get what I want
  19. on my screen.
  20.  
  21. The problem is I learned how to program in C on a UNIX machine and have no idea
  22. how to simply open the file I want to read from.  This file will be in the same
  23. folder as the program and always called the same thing.  i would like to open
  24. the file and read blocks of data from it, not all at once !
  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. I am creating three separate application to provide the reports and am not
  31. interested in following the Human interface guidlines all my friend would like
  32. to do is Double-click an application and it open the file print the report
  33. and terminate when finished !!
  34.  
  35. I realize this is not good Mac programming but it was mentto be quick and simple and I don't have time to learn prper mac programming.
  36.  
  37.  
  38. Any help is appreciated.  Sorry for any readabilty problems as my terminal has
  39. a hard time working with this system.
  40.  
  41. Please E-Mail to:
  42. joel@iastate.edu
  43. or FAX 515-232-4736
  44.  
  45. Thanks...
  46.  
  47.