Flash Games

 FAQ   Search   Members   Groups   User Control Panel      Login 

It is currently Tue Dec 02, 2008 11:10 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Quick way of sorting content of .txts
PostPosted: Mon Mar 26, 2007 7:28 pm 
Offline

Joined: Sun Nov 05, 2006 3:59 pm
Posts: 10
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games
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: