I have a text based database and it looks like this :
269,N,1,1,That's a good news
269,N,1,2,that you are going on and on
273,A,14,16,Sadek,NOTHIONG
278,T,Call Fardous and invite
Each of the lines indicate a day's activitity and speparated by the delemeter , (comma). My program reads this database as well writes on the screen and in files. Now, I want to convert the text based data file into Binary file. I want to use fread and fwrite and sperate each lines and each fields according to the delemeter. Can anyone tell me how to do that?
269,N,1,1,That's a good news
269,N,1,2,that you are going on and on
273,A,14,16,Sadek,NOTHIONG
278,T,Call Fardous and invite
Each of the lines indicate a day's activitity and speparated by the delemeter , (comma). My program reads this database as well writes on the screen and in files. Now, I want to convert the text based data file into Binary file. I want to use fread and fwrite and sperate each lines and each fields according to the delemeter. Can anyone tell me how to do that?