Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Leda > Re: #include <f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 92 of 212
Post > Topic >>

Re: #include <fstream> using Dev C++// how to specify a file locatio

by "sirclif" <cdclark@[EMAIL PROTECTED] > Oct 20, 2004 at 03:23 PM

there are two ways:

1. give out_stream the absolute pathname;

    out_stream.open("c:\Do***ents and Settings\username\My
Do***ents\outfile.dat");

2. give out_stream the relative pathname;

    out_stream.open("..\outfile.dat");
      this creates the file in the directory above the directory the
program is excecuting form

im not exactly sure on the windows file nameing, but that is how it would
work in linus
 




 3 Posts in Topic:
#include using Dev C++// how to specify a file locatio
moldylocks13@[EMAIL PROTE  2004-01-19 12:38:17 
Re: #include using Dev C++// how to specify a file loc
"sirclif" <c  2004-10-20 15:22:52 
Re: #include using Dev C++// how to specify a file loc
"sirclif" <c  2004-10-20 15:23:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:48:54 CDT 2008.