The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
listing files along with grep -v charlie11k UNIX for Dummies Questions & Answers 5 06-01-2007 07:00 AM
customising listing of files vasikaran UNIX for Dummies Questions & Answers 2 07-04-2005 02:11 AM
Listing of files Vitalka Linux 1 03-02-2005 09:32 AM
help - listing files richarmj Filesystems, Disks and Memory 2 10-02-2003 09:14 AM
Recursive directory listing without listing files psingh UNIX for Dummies Questions & Answers 4 05-10-2002 10:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-04-2007
krishna_sicsr krishna_sicsr is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 25
Unhappy Listing Files

Dear All,
I want to list all the files of a Directory. I am not able to find out the code. So plz send me code in C in Unix Environmrnt so that I can Display all the file names of a Directory
  #2 (permalink)  
Old 04-05-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
No one is going to be sending you any code. Thats not what this site is about. Why don't you show us what you've got so far, and someone might help you fix anything that's wrong.

In case you haven't started at all, here are a few pointers. Take a look at the man pages for opendir, readdir, closedir. That should help.
  #3 (permalink)  
Old 04-05-2007
manoj.rana manoj.rana is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 16
How to write a code in C to search a file

Hi ,
The code for displaying the files in a directory is already posted on this
forum. you need to just change that according to your requirement. i have given the code in How to write a code in C to search a file and that is only for unix clones. just check the code there and revrt back accordingly.
  #4 (permalink)  
Old 04-05-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,952
Quote:
Originally Posted by krishna_sicsr
Dear All,
I want to list all the files of a Directory. I am not able to find out the code. So plz send me code in C in Unix Environmrnt so that I can Display all the file names of a Directory

for a start check this thread in the forum
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0