Is there a way to read character from a file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there a way to read character from a file?

I need to read a string from a file using fstream.h header file.is it possible in solo learn or is there any other way for it?

14th Aug 2018, 5:22 PM
THE GAMER
THE GAMER - avatar
1 Answer
+ 4
If what you need is a file from which to read in the first place... You have write access to the directory where your code is running. Try writing a test file, closing it, then opening it again for reading. SoloLearn will delete files you've created when your application terminates.
15th Aug 2018, 12:02 AM
Kirk Schafer
Kirk Schafer - avatar