i need to print a wildcard * in the output . a program that takes a string as command line argument prints all the files in the directory instead of *. can u help me?
rati
0
Junior Poster in Training
Recommended Answers
Jump to Posti need to print a wildcard * in the output . a program that takes a string as command line argument prints all the files in the directory instead of *. can u help me?
Post your code, to see what have you done so far.
Jump to Postdepends on the operating system -- *nix or MS-Windows? (MAC I don't know about). I believe there are some boost c++ classes that will make your code portable between operating systems.
MS-Windows: FindFirstFile() and FindNextFile() Here is a code snippet that illustrates how to use these functions.
…
Jump to Posti m wrking on linux
see this article
Jump to Postcan u please post me what is written in the link , i am unable to open it .
The article is probably copyright. But you will get similar articles by googling for "man opendir" which will give you links to the linux man pages for that function.
All 14 Replies
andor
25
Posting Whiz in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
rati
0
Junior Poster in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
rati
0
Junior Poster in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Salem
5,138
Posting Sage
rati
0
Junior Poster in Training
rati
0
Junior Poster in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
rati
0
Junior Poster in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Salem
5,138
Posting Sage
rati
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.