Hello,
I use MS-VisualStudio 2015.
I want to read in a text-file to bring it out with another format.
But there is no text at the screen?
Here is the code:
Your condition is wrong. fopen_s(&stream, "NetWorkNeu1.txt", "r") != 0 A return code != 0 means everything is ok. As Fanboro mentioned if you open the file for reading you should not try to write into it.