facing an issue with filehandling my data is being stored intxt file but when i kill the terminal and run again it aint visible | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

facing an issue with filehandling my data is being stored intxt file but when i kill the terminal and run again it aint visible

The issue is that the data is visible in ..txt file and even out put is visible if we see the output for that particular instance but when we kill the terminal and run the code again the output is not visible but the data is saved in the file.

23rd Jul 2021, 4:23 PM
Ravikanti Ashrith
Ravikanti Ashrith - avatar
1 Answer
+ 2
This must be due to the file-handling *mode that you use. Go and check file handling mode from here: https://www.tutorialspoint.com/cplusplus/cpp_files_streams.htm If still you have any query, then you can post the source code too.
26th Jul 2021, 5:48 PM
DEEPAK KUMAR
DEEPAK KUMAR - avatar