Modifying input file extra data

  • Thread starter Thread starter Santosh PU
  • Start date Start date
S

Santosh PU

Guest
Hi,

I have a input file name as 'ChangesetDetails.txt'. Basically this file contains list of file names. I will have to loop through each line from this file (file names) and look in some other location if this file is being modified (this logic is already in place.) If the file is modified, I have to update the input file as 'ChangesetDetails_Output.txt' and enter few details like who modified and time. For example:

If 'ChangesetDetails.txt' file is like this:

ABC.dll

DEF.dll

XYZ.dll

If DEF.dll is modified, then 'ChangesetDetails_Output.txt' should look like this:

ABC.dll

DEF.dll

Modified time

Modified by

XYZ.dll


So basically 'ChangesetDetails_Output.txt' should contain the existing data along with modified data.

Please let me know better logic to do this.

Kindly waiting for your response.

Thanks,

Santosh

Continue reading...
 
Back
Top