943,892 Members | Top Members by Rank

Ad:
  • Mac OS X Discussion Thread
  • Marked Solved
  • Views: 1309
  • Mac OS X RSS
Nov 18th, 2008
0

fstream library

Expand Post »
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
Similar Threads
Reputation Points: 36
Solved Threads: 0
Junior Poster in Training
grisha83 is offline Offline
70 posts
since Sep 2008
Nov 18th, 2008
1

Re: fstream library

What language are you programming in?
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Nov 18th, 2008
0

Re: fstream library

Click to Expand / Collapse  Quote originally posted by John A ...
What language are you programming in?
Sorry, its C++
Reputation Points: 36
Solved Threads: 0
Junior Poster in Training
grisha83 is offline Offline
70 posts
since Sep 2008
Nov 18th, 2008
1

Re: fstream library

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.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Nov 18th, 2008
0

Re: fstream library

I see
Thank you for the insight
Reputation Points: 36
Solved Threads: 0
Junior Poster in Training
grisha83 is offline Offline
70 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Mac OS X Forum Timeline: Software Update not working
Next Thread in Mac OS X Forum Timeline: Trojan/backdoor tool targetting OS X





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC