I want to read first 10 lines of a text file and then write the same into a new file:
Below is the code which I tried, but ain't able to write anything.
Your help will be greatly appreciated.
in my main method, I have:
[Update: Added code tags (read UseCodeTags) ]