-
Mar 31, 2010, 10:33 PM
#1
IA- Sorting contents of a file
ok so i've finished two of my functions (mostly) so far and i'm trying to do the sorting one now. But it is seriously giving me a hard time. So I began to wonder, is it even possible to do what I want to do.
So basically, can I sort the contents of a file? All I have been seeing is sorting arrays -_-. Well if I can't, does anyone know a way I can get around it?
Thirdly, does anyone know how to print contents of a file, as in sending it to the printer (and to the screen so i can see the difference)?
Thanks.
-
Mar 31, 2010, 10:42 PM
#2
Get around it.. Store it somewhere temporary and arrange it there.. maybe arrays.. Then print the arranged thing to text thats the best thing that i can think of.
If that doesn't work try these links:
http://www.dreamincode.net/forums/in...howtopic=20240
http://www.daniweb.com/forums/thread40342.html
http://www.programmersheaven.com/mb/...lphabetically/
If that don't help.. I tried
-
Mar 31, 2010, 10:52 PM
#3
Thanks much! It really helps . Now I gotta finish this thing in an hour.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules