How would you write code using a loop to read in the individual files, 1 at a time, from a directory and process them?
Posted on 2016-08-30
I am developing a C# application using VS2010 and .Net Framework 4.0
How would you write code using a loop to read in the individual files with a file name extension of "ard.out",
1 file at a time from a directory (for example: C:\BankABC\).
Then assign these *.ard.out file names to a variable X, so that the files could be read individually by "File.ReadAllBytes(X)" and then additional statements process these files.
byte imgBits = File.ReadAllBytes(X);
Do Some Additional Processing