Gopi Asai

Gopi Asai

  • NA
  • 337
  • 0

read and edit the notepad along with input directory

Jul 26 2012 2:39 AM
I would like to store the image path in notepad by refer the input of another notepad. Input look like below.

IM,abc001,D,0;ABC;images\00\00;abc001.tif;2
IM,abc002,D,0;ABC;images\00\00;abc002.tif;2
IM,abc003,D,0;ABC;images\00\00;abc003.tif;2
IM,abc001,D,0;ABC;images\00\01;abc001.tif;2
IM,abc002,D,0;ABC;images\00\01;abc002.tif;2
IM,abc003,D,0;ABC;images\00\01;abc003.tif;2

Image path in system

D:\ABC\Images\00\00\

abc001
abc002
abc003

D:\ABC\Images\00\01\

abc001
abc002
abc003

Input image names may be in same (duplicate) but it's available in different folder. So avoid to open the incorrect image i want to get the all image path and save in notepad along with image name like below

IM,abc001,D,0;ABC;D:\ABC\Images\00\00\;abc001.tif;2
IM,abc002,D,0;ABC;D:\ABC\Images\00\00\;abc002.tif;2
IM,abc003,D,0;ABC;D:\ABC\Images\00\00\;abc003.tif;2
IM,abc001,D,0;ABC;D:\ABC\Images\00\01\;abc001.tif;2
IM,abc002,D,0;ABC;D:\ABC\Images\00\01\;abc002.tif;2
IM,abc003,D,0;ABC;D:\ABC\Images\00\01\;abc003.tif;2

Could you please help me here.

Regards,
Gopi A

Answers (3)