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

What language are you programming in?

What language are you programming in?

Sorry, its C++

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.

I see
Thank you for the insight

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.