Hey guys,
Thanks for the help, the last post gave me the problem.
I'm also running a fresh windows install and windows hides the file extensions by default.
I thought i wrote a file "test.dat"...
Type: Posts; User: JustMe
Hey guys,
Thanks for the help, the last post gave me the problem.
I'm also running a fresh windows install and windows hides the file extensions by default.
I thought i wrote a file "test.dat"...
Yes, test.dat is located in the same directory as my *.cpp file and thus the executable.
Did i forget any headers or something?
I'm sorry, forgot a bit i see :)
The first problem is the bit
ifstream infile("test.dat", ios::in | ios::nocreate);
It won't compile until i delete the "ios::nocreate" part. It says:
Hey guys,
I'm trying to learn c++, but i think i may need a little help at this point.
I want to read some data from a file "test.dat", but for some reason it won't work.
I don't see where i...