Reading saved file

I am looking to write a program that can edit data in a file saved from a game I have. I was wondering if anyone has seen this format before, or have any ideas/sample code to help get it into a more readable/editable format.

http://efba.0catch.com/EFBA2.zip

thanks, chris
nyk52687Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nyk52687Author Commented:
stupid hotlinking, try this one: http://efba.0catch.com/efba2.htm
0
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
Try use the below function to Read, and Write to a file:

Public Function ReadFileText(ByVal FileName As String) As String
    On Error GoTo EHandler
    Dim Handle As Integer
    Handle = FreeFile
    Open FileName For Input As #Handle
        ReadFileText = Input$(LOF(Handle), Handle)
        On Error Resume Next
    Close #Handle
    Exit Function
EHandler:
    On Error Resume Next
    Close #Handle
End Function

Public Sub WriteFileText(ByVal FileName As String, ByVal Source As String, Optional noCrlf As Boolean = False)
    On Error GoTo EHandler
    Dim Handle As Integer
    Handle = FreeFile
    Open FileName For Output As #Handle
        If noCrlf Then
            Print #Handle, Source;
        Else
            Print #Handle, Source
        End If
        On Error Resume Next
    Close #Handle
    Exit Sub
EHandler:
    On Error Resume Next
    Close #Handle
End Sub

After reading your content of file, you may need to split it to get the values from the file.

Hope this helps
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aelatikCommented:
To read and write a file you can use the code ryancys gave you. But the file youre willing to open is a problem.
There is some type of encoding in that file. If you don't know how to decode it you can't show it in a readable/editable format.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

nyk52687Author Commented:
is it like a standard encoding or a custom encoding?
0
aelatikCommented:
can't tell
0
nyk52687Author Commented:
hmm...
0
nyk52687Author Commented:
if anyone has some free time and would like to write a small app, that would be great. i could boost the points up to 475 from 400 but thats it cuz i only have 475 points...i can't think of any other way to repay an expert

thanks in advance, chris
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.