HI.help me

I'm basic programmers in java and reading thinking in java book.i want write that program for search string in file.please help me.
thanks.

Comments

  • : I'm basic programmers in java and reading thinking in java book.i want write that program for search string in file.please help me.
    : thanks.
    :

    pseudo code

    declare string containing search string

    open file
    scan until first character of string found or until end of file reached
    compare string with the succeeding characters
    if equal, save position, break loop
    if not, continue
    end loop

    close file

    end pseudo code

    I haven't programmed in Java for a while...I could show you how to do it in C, but javac would spit it out if your tried to compile it...
    Doesn't you book tell you how though? It shouldnt be too hard...
    {2}rIng
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion