please help me bcoz, u see i used 'typedef struct' to store an array about 100 record..and you see the problem is when i store it into .dat file it only allow me to store record that are not the 13th..in other words, i can store file up to any size but when i store the 13th record in the files it will delete all the content in the file but there is nothing wrong if i straight away store up to 14th files or more until the 26th record ..and 39th record..a bit weird..and i check it many many times the codes is probably nothing wrong (based from what i've learned). I hope some of u guyz will help me ....for more information i use fwrite and the the fopen with 'w'.