Computing.Net > Forums > Programming > How to read a file name automatica

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to read a file name automatica

Reply to Message Icon

Name: Shutian
Date: July 2, 2004 at 18:27:08 Pacific
OS: Solaris
CPU/Ram: 300Mhz/512
Comment:

I have a standing problem:
Under a directory, I have many files with similar names
for example
1998.EEO.SAC
1999.OTT.SAC
2000.CRLO.SAC
.
.
.
I want to read one of the file name automatically, by just inputing some letters, for example, OTT. When I put OTT, in a program, or proscript, I want to pick up file name 1999.OTT.SAC automatically. Then I can open the file, read data in the file, or write data to the file.

Could you possibly tell me how to do the job?
I might have more than 100 files under one directory!



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: How to read a file name automatica

How To delete a file uninstalled www.computing.net/answers/programming/how-to-delete-a-file-uninstalled/18405.html

How to read whole file? (C++) www.computing.net/answers/programming/how-to-read-whole-file-c/13286.html

Win32: Reading a texts from a file www.computing.net/answers/programming/win32-reading-a-texts-from-a-file/11673.html