Re: Trouble with reading and appending to lines in a file...
scopp
Date: 01/22/04
- Next message: Scott Ellsworth: "Re: Big job? Contractors?"
- Previous message: Sudsy: "Re: Anyone ever done this with images in a jar"
- In reply to: Andrew Thompson: "Re: Trouble with reading and appending to lines in a file..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Jan 2004 10:06:16 -0800
Both of your suggestions have been duley noted. Thank you both very much!
stephen
"Andrew Thompson" <andrew64@bigNOSPAMpond.com> wrote in message
news:2AHPb.22880$Wa.781@news-server.bigpond.net.au...
> "scopp" <scopp@ea.com> wrote in message
> news:100u9rt4bksj20c@corp.supernews.com...
>
> I suspect Michael's answer will fix the
> immediate problem, but I would like to
> address a more fundamental issue.
>
> Techniques for testing..
> ....
> | Here is what I've got so far:
>
> An example, you are already miles ahead
> of the game.
>
> | import java.io.*;
> | public class GetLine {
> | int number; //let's say the lines in the file
> are all 5 digit
> | numbers, with no spaces
> | public boolean evaluate(String str) {
> | //
> | //I'm not sure how to evaluate if the end
> of the line
> | has the word SKIP and the following doesn't work????
> | //
>
> But here is where you should insert some
> code if things are not working..
>
> System.out.println( "GL.e str: '" + str + "'");
>
> Note that I have put single quotes
> either side of the actual string..
>
> Give it a try and see if it reveals
> anything significant..
>
> | if ( StringBuffer.indexOf("SKIP\n") )
> | return true;
> | }
> ......
>
> One last comment is that GetLine is
> a bad name for a class, classes should
> be nouns rather than verbs..
>
> HTH
>
> --
> Andrew Thompson
> * http://www.PhySci.org/ PhySci software suite
> * http://www.1point1C.org/ 1.1C - Superluminal!
> * http://www.AThompson.info/andrew/ personal site
>
>
- Next message: Scott Ellsworth: "Re: Big job? Contractors?"
- Previous message: Sudsy: "Re: Anyone ever done this with images in a jar"
- In reply to: Andrew Thompson: "Re: Trouble with reading and appending to lines in a file..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|