Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Quick way of sorting content of .txts



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> C and C++ Forum
View previous topic :: View next topic  
Author Message
Vankelmod



Joined: 05 Nov 2006
Posts: 10

PostPosted: Mon Mar 26, 2007 7:28 pm    Post subject: Quick way of sorting content of .txts Reply with quote

Hi, I was sitting here making boring lists in .txt files to use for my programs. I've copied and edited them so now the previously alphabetic order is really off. Since I'm lazy and the lists are close to fourthousand lines I figured there'd be an easier way to do it.

My general idea for a program was to read in the list line by line into a dynamic object <list> , sort it and spit them back out in order overwriting the old ones. But when I tried I couldn't get the ifstreams and ofstreams to work properly and since the program itself i so uncomplicated I figured I could just ask you to do it for me. If anyone of you c++ geniuses have a spare five minutes I'd like your help on this one. The contents of the files are of the syntax word, endline, word, endline and so forth.

Thanks in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> C and C++ Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap