Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2006, 01:09 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.