Strange problem with Random Access Filing in C++
- by sam
This is a simple random access filing program . The problem arises where i want to write data randomly. If I write any where in the file the previous records are set to 0. the last 1 which is being entered currently holds the correct value all others =0.
This is the code
#include <iostream>
#include<fstream>
#include<string>
…