Re: writing data

new topic     » goto parent     » topic index » view thread      » older message » newer message

At 04:27 PM 5/19/98 PDT, you wrote:

>I have been working on a workout program that I wrote in qbasic and I
>was storing the user info in a file. I was using two seq to stroe the
>info, the first has all the names of the users and the second has all
>the info on them. I read/write them using get()/print() but if you open
>the file you can see the seq, any body have any ideas on a better way to
>store info in a file so it cannot be read by noise people who might try
>and mess with it. any suggesting?

Hello Mr Man ... or is that Mr Big?

you could yse the following.

before you print(fn,myseq)

do:
myseq=hide(myseq)

The same call after get() will put the
sequence back how it was.

function hide(sequence s)
    set_rand(1)
    for x=1 to length(s) do
        if atom(s[x]) then
            s[x]=xor_bits(s[x],rand(255))
        else
            s[x]=hide(s[x])
        end if
    end for
    return s
end function

*UNTESTED*CODE* just typed it into Eudora, but it should work.


>by the way, A while back I was having trouble with the editor's, I have
>been using the ee editor and it still keeps crashing...

Without wanting to detract from the excellent editor contributions,
am I the only one who uses ED.EX? I find it to be uncomplicated and
extremely functional. Win95 will happily drag and drop file paths
at the appropriate prompts, and I've never considered looking for
anything else... Anybody?


Graeme.
----------------------------------------------------

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu