Re: Trouble with reading and appending to lines in a file...

scopp
Date: 01/22/04


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
>
>



Relevant Pages

  • Re: Unknown use of F9 key
    ... press it the whole desktop goes dim, and only comes back if I press ... another F-key or click with the mouse. ... I also suspect it was set as a key and the action program no ... All I've got is a fix for you. ...
    (Ubuntu)
  • Re: 2.6.24-rc6-mm1
    ... I then tried to "fix" it with this suspect. ... my WARN_ONin skb_morph did not trigger once before ... u32 seq, u32 *off) ...
    (Linux-Kernel)
  • Re: page fault panic in device_get_softc/acpi_pcib_route_interrupt
    ... > A possible fix is to change each reference to LP* in the PICM and APIC ... > the instructions for overriding it in acpi. ... > herring and suspect the asl fix won't help. ...
    (freebsd-current)
  • Re: Date Parameters
    ... to fix the immediate problem you could probably use something like the following. ... I would venture to guess that there would be a much simpler way to fix this problem. ... University of Maryland Baltimore County ...
    (microsoft.public.access.reports)
  • Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]
    ... one immediate problem already: the 'nice offset' is not divided by ... The patch below should fix this but i have yet ...
    (Linux-Kernel)