I am currently working on a project involving Think C 5.0 on the Macintosh.
Unfortunatly I have never programmed on a Mac before and this was going to be
quick and simple for a friend. In this project I am trying to read in a text
file and print it out in one of three various label formats. I have the print
routines down and when inputting data from the console I can get what I want
on my screen.
The problem is I learned how to program in C on a UNIX machine and have no idea
how to simply open the file I want to read from. This file will be in the same
folder as the program and always called the same thing. i would like to open
the file and read blocks of data from it, not all at once !
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
codes (15cpi, 8lines per inch, ect..). Then just dump my charecter to it
instead of the screen.
I am creating three separate application to provide the reports and am not
interested in following the Human interface guidlines all my friend would like
to do is Double-click an application and it open the file print the report
and terminate when finished !!
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.
Any help is appreciated. Sorry for any readabilty problems as my terminal has