Help!
Hi
I am new to C++ development and am trying out certain basic examples. This is my code.
#include <iostream.h>
#include <fstream.h>
void main()
{
char c;
ifstream infile("Test");
ofstream outfile("Test1");
if (outfile && infile) // They will be 0 on err.
while (infile >> c)
outfile << c;
}
However, while compiling I am getting the following error:
Error spawning ''.
What could be causing this?
|