I have a list of files in the directory C:\Users\Mahady\Desktop\Java 31122011\src\register\
they are like this….
100100545.txt
100545454.txt etc etc
in each file, file data are like this line by line:
Bob
1234
4834
London
9852
1
My question is, how do i read each files one by one in the directory and for each files read all lines except line 3. i would then like to merge this data in word and create letters. thanks
Try this:
Obviously, you will need to add exception handling code around this skeletal implementation.