fstream library

Thread Solved

Join Date: Sep 2008
Posts: 65
Reputation: grisha83 is an unknown quantity at this point 
Solved Threads: 0
grisha83's Avatar
grisha83 grisha83 is offline Offline
Junior Poster in Training

fstream library

 
0
  #1
Nov 18th, 2008
Hello,
does anybody know how to read in the data from a file into a program and vise versa when i am programming on mac? To be more precise, i dont have a txt., i only have rtf. extensions. Every time i run the console, i get an error message that the file cannot be found.
Thank you
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: fstream library

 
1
  #2
Nov 18th, 2008
What language are you programming in?
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 65
Reputation: grisha83 is an unknown quantity at this point 
Solved Threads: 0
grisha83's Avatar
grisha83 grisha83 is offline Offline
Junior Poster in Training

Re: fstream library

 
0
  #3
Nov 18th, 2008
Originally Posted by John A View Post
What language are you programming in?
Sorry, its C++
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: fstream library

 
1
  #4
Nov 18th, 2008
Well, then as your thread title says, you will need to use the fstream library from the STL. Reading in a .rtf is the same as reading in a normal text file; the only difference being that rtf contains markup describing the formatting of the text it contains.
Last edited by John A; Nov 18th, 2008 at 8:36 pm.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 65
Reputation: grisha83 is an unknown quantity at this point 
Solved Threads: 0
grisha83's Avatar
grisha83 grisha83 is offline Offline
Junior Poster in Training

Re: fstream library

 
0
  #5
Nov 18th, 2008
I see
Thank you for the insight
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC