• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io package

 
Leena Mishra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I am new to post the message.but i am constant watcher of this site.Thanks to everyone for creatingand maintaining such a wonderful site.
I want a help from you guys.
I am writing one program (just for my knowledge)which should perform following functionalities.
1.Lets say: there are 2 input files.FileA and FileB.
2.It should give the error message if the above Files don't exist.
3.The program should read first 20 characters of each line of the FileA and match it with first 20 Characters of each line of FileB.
4.If it matches then it should create a text file(if it doesn't already exists) and write the matched line to that.
5.If it does not match then it should create another text file
(if it doesn't already exists) and write the Unmatched line to that.
6.When you run the program from a batchfile it should return the
non zero return code if it is unsuccessful and 0 if it is successful.
Thanks in advance.Please help me if you can.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!