[comp.sys.mac.programmer] Trouble with THINK C! Help ...

pa@symbas.UUCP (Michal Aase) (04/10/90)

In article <2790@quiche.cs.mcgill.ca> monching@quiche.cs.mcgill.ca (Patrick WONG) writes:

>   I having trouble reading in numbers in THINK C.  The number is 13 and
>   using fread, the number is converted to 10.  I think it has something to
>   do with mac using linefeeds instead of carriage returns.  However, I'm not
>   using the numbers as characters but as long int.  Can anyone help?
>
	[Lots of stuff deleted...]

	If you look in the manual you'll find that fopen also takes a
	"b" for binary files... use this, and your numbers will not be
	converted anymore !

	-pa