Original Post
hello,
in a program i''m making i need to use a file to store coordinates. I was using fputc() and fgetc() to store the integers for the coordinates
but i was having a problem when the number for the coordinate was too high, it wouldn''t save the right number to the file for some reason.
i changed the code and now i use fprintf() and fscanf() for the file I/O and it works
the only problem is that when i use fprintf() instead of making a small binary file with stuff like "f¯G#EÁÎÿÿÿÿÿÿÿ" in it, it generates a huge text file with the actual numbers writen in it. It works, but the file is a whole lot bigger than the binary file that i had before
is there anyway that i can reduce the size of the text file? or can someone tell me why i was getting the problem with fputc()?
thanks