Text file versus Binary file
Hi all...
Im a little confused about the usage and purpose text and binary files.
To create a binary file, i need to fopen() a file with binary modes such as rb,wb,ab...etc... and we can only use fread and fwrite..am i right?Can we use fscanf and fprintf for a binary file?
I see some programs usings fread and fwrite while their file is opened using text file modes,such as ,r,w,a..etc...will it work too?
Im currently creating a search engine on a student database using files.But im not sure bout which kind of file is more suitable to use ..Any idea?thanks