Page 1 of 1 [ 4 posts ] 

ToadOfSteel
Veteran
Veteran

User avatar

Joined: 23 Sep 2007
Age: 38
Gender: Male
Posts: 6,157
Location: New Jersey

05 Dec 2008, 10:17 am

So I need some help with a project I have to do for school. Basically I need to know how to use the fstream library (I've already included it in the program, but I don't know how to implement it. This involves a program being able to open a file, inputting 2 text fields, and saving it...



drowbot0181
Veteran
Veteran

User avatar

Joined: 1 Dec 2008
Gender: Male
Posts: 700
Location: Oklahoma

DarthMaxeuis
Toucan
Toucan

User avatar

Joined: 23 Nov 2008
Age: 33
Gender: Male
Posts: 255
Location: Alpha Centauri

05 Dec 2008, 12:00 pm

Don't know that library.
I use SDL, I could have helped you if you used that one.
Normally, the instructions to integrate a library is placed in a readme file in the .rar you downloaded from a website.
Most of the time, it is putting a .h file in the archive right in the header.
example :
#include 'SDL.h' (for my library of course)

Which C++ compiler do you use ?
I use Visual C++ Express Edition (Freeware)
I hope that helped you...


_________________
"Le bonheur est un idéal de l'imagination et non de la raison" - Emmanuel Kant
"L'homme est né naturellement bon, c'est la société qui le corrompt" - Jean Jacques Rousseau


drowbot0181
Veteran
Veteran

User avatar

Joined: 1 Dec 2008
Gender: Male
Posts: 700
Location: Oklahoma

05 Dec 2008, 12:30 pm

Here is another link with examples:
http://www.cplusplus.com/doc/tutorial/files.html