Hey corona......
Thanks a lot....it works well
But, I didnt understand that which statement is storing the 5th column of first file.....although u mentioned "# Save the fifth line"....... I tried by replacing 5 by 3 or 2 in
....but it is still giving the same output as in
, I need to store 2nd and 5th column data in separate files.
Also, my secondfile has 20 rows of strings, whereas in everyoutput, it is showing 21 rows.....last row is always "ABSENT", all above 20 rows are in desired way..... can u plz figure it out.
---------- Post updated at 12:20 PM ---------- Previous update was at 10:57 AM ----------
Hey Bartus
ur code also works well.......
But, this is also showing the same problem of printing one extra last row printed ABSENT.
i.e, the second file has 20 rows, and first file has 20 or less rows.....so expected outcome is 20 rows only...but instead of that it is showing 21 rows and every time last row is showing "ABSENT"