Strange fstream problem

Posted by noname on Stack Overflow See other posts from Stack Overflow or by noname
Published on 2010-05-09T19:26:58Z Indexed on 2010/05/09 19:38 UTC
Read the original article Hit count: 316

Filed under:
|

Hi, I have really strange problem. In Visual C++ express, I have very simple code, just:

#include <fstream>
using namespace std;
int main()
{
fstream file;
file.open("test.txt");
file<<"Hello";
file.close();
}

This same code works OK in my one project, but when I create now project and use this same lines of code, no file test.txt is created. Please, what is wrong?¨

EDIT: I expect to see test.txt in VS2008/project_name/debug - just like the first functional project does.

© Stack Overflow or respective owner

Related posts about fstream

Related posts about c++