This topic is now archived and is closed to further replies.

The C modest god

String and fstream question.

Recommended Posts

If I have a code like the following: string Name; ifstream File(""); File>>Name; File>>Name; Will the string class free the memory it used for the string after the first File>>Name, so there wont be momery leak as a result of calling one after another File>>Name?

Share this post

Link to post
Share on other sites