G
giff
hi all
this is the code:
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
std::ifstream iff("test.txt");
if (iff.is_open()) printf("Hello World!\n");
return 0;
}
I'm using visual c++ 6 and the file test.txt that is on the same
directory of the program doesn't want to get open = it never prints out
hello world
does anyone know why?
this is the code:
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
std::ifstream iff("test.txt");
if (iff.is_open()) printf("Hello World!\n");
return 0;
}
I'm using visual c++ 6 and the file test.txt that is on the same
directory of the program doesn't want to get open = it never prints out
hello world
does anyone know why?