file.txt and ReadLine issues
Hi again! I'm close to being finished with my program, all I need is two more methods to be done.
1. I have two files associated with my program (One is the commands.txt and the other is results.txt) and my assignment is to make a method that opens these two files in my program... It should be excessively simple, but I'm not sure I understand, do they mean declare BufferedReader and BufferedWriter or...???
2. I need to make a method that simply reads a line in my commands.txt, which should also be quite simple, but I just want to make sure I'm doing it right.
3. I'd also like to have an example of how to write in results.txt the result of my program after a command from commands.txt.
If y'all could help me with some examples, I'd much appreciate it, I've been searching around but I can't quite find the answers I'm looking for...
Thanks!
-Chansey
Re: file.txt and ReadLine issues
Post what you have so far and we'll help you. Also, please clarify your questions. What is it you need help with?
Re: file.txt and ReadLine issues
Check this link http://onjava.com/onjava/excerpt/jav...h04/index.html .
It has examples for BufferedReader and BufferedWriter.
It will help you.