GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Sep-2003, 10:26
calculus87's Avatar
calculus87 calculus87 is offline
Junior Member
 
Join Date: Sep 2003
Location: FLorida
Posts: 41
calculus87 is on a distinguished road
Cool

Easy Question C++ 5.0


He is an easy one for yall, but because I am a newbee I don't know how to do it.
I know you can remove a file by simply saying remove("file.ext")
the question is how do you create a file
I tried create("file.ext") that did not work

just wondering. Thanks for the help
~Ronald
  #2  
Old 16-Sep-2003, 10:38
Garth Farley Garth Farley is offline
Awaiting Email Confirmation
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
If you try & open a file which doesn't exist, it should be automatically created for you.

GF
  #3  
Old 16-Sep-2003, 10:51
calculus87's Avatar
calculus87 calculus87 is offline
Junior Member
 
Join Date: Sep 2003
Location: FLorida
Posts: 41
calculus87 is on a distinguished road

Re:


Here is my code. It does not create the file out.txt

fstream bye("out.txt");
bye.open("out.txt");

Thanks for the help
Sincerely,
Ronald



No replies found.
  #4  
Old 16-Sep-2003, 12:26
calculus87's Avatar
calculus87 calculus87 is offline
Junior Member
 
Join Date: Sep 2003
Location: FLorida
Posts: 41
calculus87 is on a distinguished road

re


fstream bye("out.txt",ios:: out);

never mind, I got it
 
 

Recent GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
video editing question Kris Computer Software Forum - Windows 8 13-Apr-2005 18:22
a C input question.. tmike C Programming Language 2 19-Sep-2003 02:39
a C input question tmike C Programming Language 1 16-Sep-2003 02:31
a noobish compiler question Charunks C++ Forum 5 03-Sep-2003 02:18
AVI Joiner, MPEG Joiner, RM Joiner, all is in Easy Video Joiner SmartHero Computer Software Forum - Windows 2 08-Mar-2003 02:51

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:11.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.