C & C++ string confusion

bruce.labitt at autoliv.com bruce.labitt at autoliv.com
Fri Feb 6 14:17:00 EST 2009


Um, doh!  I was looking for that - darn.  I really did not want to use a 
system call, too DOS like.

Thx,
B


"Shawn O'Shea" <shawn at eth0.net> wrote on 02/06/2009 01:54:24 PM:

> I googled "open file c++" in Google and got this page:
> http://www.cplusplus.com/doc/tutorial/files.html
> 
> There's an fstream include and you cin and cout to it like to do to 
stdin/out.
> 
> Also, no reason to call out to the shell. All standard file 
> operations (create/delete/copy/move/rename) are usually available 
> natively in a given language. This is true of C/C++. From the same 
> site as above, here's info on the C++ "remove" command:
> http://www.cplusplus.com/reference/clibrary/cstdio/remove.html
> 
> -Shawn

>>>> stuff snipped to keep folks happier... >>>>

******************************
Neither the footer nor anything else in this E-mail is intended to or constitutes an <br>electronic signature and/or legally binding agreement in the absence of an <br>express statement or Autoliv policy and/or procedure to the contrary.<br>This E-mail and any attachments hereto are Autoliv property and may contain legally <br>privileged, confidential and/or proprietary information.<br>The recipient of this E-mail is prohibited from distributing, copying, forwarding or in any way <br>disseminating any material contained within this E-mail without prior written <br>permission from the author. If you receive this E-mail in error, please <br>immediately notify the author and delete this E-mail.  Autoliv disclaims all <br>responsibility and liability for the consequences of any person who fails to <br>abide by the terms herein. <br>
******************************



More information about the gnhlug-discuss mailing list