Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-02-2009, 08:45 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 16

Rep: Reputation: 0
Using scandir function then saving the output to a textfile

I'm using a scandir function doing an alphasort. Works fine but the problem comes with the result because it shows a descending order, not an ascending order. How do you output the result in an ascending order?
Old 03-03-2009, 12:19 AM   #2
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
Look at the example on this page?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving the total bytes written using TAR to a textfile Berris.Oliver Linux - Newbie 2 02-24-2009 03:25 AM
saving output from FIFO? slimshady Linux - Newbie 0 11-29-2007 12:18 PM
undefined function scandir() in php tooparam Linux - Newbie 1 01-22-2006 02:03 AM
is scandir() function available in VxWorks? fssengg Programming 0 08-25-2005 10:05 AM
Saving the output of a file as a variable mrobertson Programming 5 07-08-2005 01:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration