When I read in a data file that is being written to by another program, do I have to wait unitl it is done writing to display the data? Or could I display the data as it is being writen? Currently I can read a portion of the written file correctly, but it stops and prints out zeros when the data file is still being written to with valid data.
ThanksCode://program that is reading in float input; /*open data file*/ ifstream inFile("output"); //inFile.seekg(0,ios::cur); inFile >> input; while(!inFile.eof()) { inFile >> input; data.push_back(input); //vector inFile >> input; }