January 27th, 2013, 03:58 AM
ofstream valid path and name
The following code writes to a file on either local disk to a remote disk (commented out code) on Windows 7 platform.
The documentation does not specify what is a valid filename (path and filename). For example, will the "\\\\server\temp" path work on all operating systems to access a samba share? Does the constructor accept forward and backward slashes as folder separator on all operating systems?
using namespace std;
int main ()
outfile << "Hello world";
, make an effort yourself, try googling
or search here
, give a proper description of your problem, include code* and error messages.
*All code should include code tags
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!