Computing.Net > Forums > Programming > C question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

C question

Reply to Message Icon

Name: David
Date: May 14, 2002 at 13:24:42 Pacific
Comment:

I want to get a list (text file) of contents of a specified folder using C language.
Ex: if the folder contains: file1.exe, text.txt.. so on....
my list will contain: file1.exe, text.txt,........
thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: May 14, 2002 at 13:35:35 Pacific
Reply:

C doesn't have standard functions for reading a directory listing. You'll have to find the proper functions based upon your operating system and the C libraries that you have available.

What OS and compiler are you using?


0

Response Number 2
Name: David
Date: May 15, 2002 at 01:53:09 Pacific
Reply:

win2000 and codeWarrior IDE version 4.2.5
or
Mac OS9, Mac OSX, and the same compiler.


0

Response Number 3
Name: Steve Stiffler
Date: May 15, 2002 at 04:10:05 Pacific
Reply:

You can use the ANSI c library "io.h" and the commands:

_findfirst
_findnext

for a command-description please have a loopk at the i-net ;-)

good luck
steve


0

Response Number 4
Name: andi
Date: June 25, 2002 at 00:12:00 Pacific
Reply:

how i should write the synthax if i want to wait for enter pressing by user


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Visual Foxpro REPORT PREV... Java:Append data in files...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C question

C++ question(s) www.computing.net/answers/programming/c-questions/8642.html

A few C++ questions www.computing.net/answers/programming/a-few-c-questions/13898.html

c++ question... www.computing.net/answers/programming/c-question/3127.html