How to update multiple binary circular files in C

I need to do a mass update of several years of data in binary circular files.  I have a program that can be run to update one file at a time, but I need a more efficient way of updating multiple files.  I am fairly new to C.  Any help would be greatly appreciated.
newtoperlpgmAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

d-glitchCommented:
Are you working in Windows, Mac, Linux, or something else?

What is a circular file?  When I hear 'circular file' I think trash can.

Whatever your platform, you should be able to make a batch file or script.

On Windows, you can open a DOS window and do  dir *.cir /s > file.txt to list all your files.

Then you can edit or process the list to make a batch file

yourprog   file_001.cir
yourprog   file_002.cir
yourprog   file_003.cir
  :
  :
yourprog   file_999.cir
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sarabandeCommented:
if the files are all stored at the same physical disk, you won't get much benefit by using multi-threading for the update since the bottle neck is the disk i/o.

if you have multiple folders - say one folder for each year - where the files reside, you may start your program multiple times from shell and pass the source folder as command line argument. that way you easily could check whether it makes sense to run multiple instances of your program parallel or whether this slows down the overall performance.

Sara
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.