
-----------------------------------
Tubby_Kat
Sun May 17, 2009 9:44 am

Changing a Text File Program to a Binary File Program (searching)
-----------------------------------
What is it you are trying to achieve?
I'm trying to get the program to search for contacts that was formally a text file program to a binary file program.


What is the problem you are having?
It won't search for names or anything when it's a binary file

Describe what you have tried to solve this problem
Get it to search


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

Not the real program, but an example. 



procedure putHeader ()
    
    put "Name" : 15 ..
    put "Student ID" : 10 ..
    put "     Grade" : 10
    for i : 1 .. 35
        put "=" ..
    end for
    put ""
end putHeader

function searchString (lookString, inString : string) : boolean
    var lookLength, inLength : int
    var numCompares : int
    var found : boolean := false
    var subString : string

    
    lookLength := length (lookString)
    inLength := length (inString)

        if lookLength 