1. Open the file to read in.
2. Open a file to write to.
3. Repeatedly read in a line and write it to the output file until the end of paragraph or end of file is found.
4. Close the output file.
5. If the end of paragraph was found go back to step 2.
6. Close the input file.
Certainly. Post up the code you've got so far, and explain which part you're stuck on and we'll help you fix it.
Programming is an explanatory activity...
R. Harper
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
The more clearly you explain what you want to happen and what is actually happening (remembering to include all error messages and stack traces) the more likely someone is to be able to help you.
Posting the code in code tags so it stays formatted would also help.
Straightaway I can see a problem - all your code lines start with a '#', so none of it is valid Java.
If you want us to make the effort to help you, you're going to have to make a reasonable effort to help us do that. Posting valid Java code that (preferably) compiles is a good start. Explaining exactly what you're stuck on is essential.
Eighty percent of success is showing up...
W. Allen
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Bookmarks