I have recently installed code::blocks and was writing a basic progra of data file handling... The program is not working and stops responding in between when I try to read the contents of the file...
I downloaded a sample code but it works fine.. although the codes are almost the same.. I tried usinf ios::ate instead of ios::app...
When I enter 1 contact it displays o/p correctly
When 2 contacts the second contact twice
When 3 contacts the output is some garbage symbols...
Many times it just stops responding..
Please can you tell me where am I making a mistake..