Alright so I am trying to swap fstreams. I do not use c++11 so there is no swap function. Is there anyway I can swap the files 2 fstreams have open? Or is there a way to get the name of the file that the fstream has open?
kyle.mace.35
0
Light Poster
Recommended Answers
Jump to PostDefine "swap" for your purpose. Do you want to swap the file references entirely or just copy the contents of one stream to another?
Or is there a way to get the name of the file that the fstream has open?
Nope. You need to save the name, …
Jump to PostAnd in all reality I will be working with more than two files because I am working on an external polyphase sort
Okay, you're making it too complicated. You'll already have a collection of stream objects for a polyphase sort, so just mark the index of (or have …
All 6 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
kyle.mace.35
0
Light Poster
kyle.mace.35
0
Light Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
kyle.mace.35
0
Light Poster
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.