Give the complete path to the file. For example: "/usr/home/BlueOrca/devel/data/customers.txt" (Unix) "C:\\Documents and Settings\\BlueOrca\\Desktop\\numbers.txt" (Windows)
Test the path by running this program; if the path is correct the contents of the file will be dumped on stdout.
1 2 3 4 5 6 7 8
#include <iostream>
#include <fstream>
int main()
{
constchar path[] = "<put the complete path to the file here>" ;
std::cout << std::ifstream(path).rdbuf() ;
}
sorry I'm beginning C++ I copied your code and got these errors:
line 6 error: incomplete universal character name \U
line 6 warning unknown escape sequence '\B' [enabled by default]
line 6 warning unknown escape sequence '\D' [enabled by default]