P
PBarnes
I need to write a program that will read the contains of a folder
and output it into a text file. the folder will contain files with
extensions
..000 .001 .002... and so on, plus many .txt, .tif, and .htm files
basically the output text file as to be in the following format;
Y
1
1
1
filename.000
y
2
filename.001
y
4
filename.tif
y
3
filename.txt
n
the first 5 lines will always be the same, after that it as to add
'y','2' if the extension is .00#
'y','3' if the extension is .txt or .htm, and 'y','4' if the extension
is .tif or .jpg
any ideas?
thanks
and output it into a text file. the folder will contain files with
extensions
..000 .001 .002... and so on, plus many .txt, .tif, and .htm files
basically the output text file as to be in the following format;
Y
1
1
1
filename.000
y
2
filename.001
y
4
filename.tif
y
3
filename.txt
n
the first 5 lines will always be the same, after that it as to add
'y','2' if the extension is .00#
'y','3' if the extension is .txt or .htm, and 'y','4' if the extension
is .tif or .jpg
any ideas?
thanks