
                        Binary File Fixer version 1
                         Created by: Adam Erickson

Disclaimer:
        The author (Adam Erickson) will not be held accountable for any
damages that come to you or your computer because of this program.  This
includes, but is not limited to, brain damage, frustration, your monitor
blowing up in your face and aliens landing in the process of you fixing
your only image backup of your hard drive which you need more importantly
because it contains that writeup you needed for work the next day that you
saved RIGHT before yuor computer crashed.

                         (Whew, that's a mouthfull!)

Intro:
        The internet is becoming a very huge plot of land these days.  
With every new area explored comes a new challenge, a lot of the time the
challenge is the all to common question, "How do I do this?"  Normally, 
the answer was "Protocol of course!"  The word Protocol today is a deadly
term to those who do not understand what it means.  Many (too many in fact)
people do not know the difference between ASCII and BINARY file transfers.
Take FTP for example, you can either transfer in BINARY (Image) mode or 
ASCII (text) mode.  Have you ever transferred a Disk Image, or a .ZIP in
ASCII mode before?  If so, you know what I'm getting at.  It only works
SOME of the time.  When it doesn't work you have to redo the entire 
transfer!  What a waste of time!  Enter BinFix...

Purpose:
        Binary File Fixer was designed to help out those who forgot, or who
just didn't KNOW that they were supposed to be transferring in BINARY mode
not ASCII and have had theif iles corrupted because of it.  BinFix will try
it's hardest to put your file back together.

Usage:
        BinFix, as of yet, does NOT support wildcards, PLEASE DO NOT TRY TO
USE THEM!  If you type BinFix it will ask you for a filename and then fix
it for you.  When the process is complete the program will exit leaving you
with your new file (fixed version) and a backup (BACKUP.FIX) of the old file.
If you do not wish to have these messy backup files created give BinFix the
'D' option ("binfix d" or "binfix D") and it will not create the backup.
     IT IS HIGHLY RECOMENDED THAT YOU **DO NOT USE THIS OPTION**
        ONLY USE IT IF YOU ARE *SURE* THE PROCESS WILL WORK!

Technical aspect:
        This program was a "project" of mine a long time ago after I had
downloaded the demo of Wolfenstein 3d and had used ASCII to transfer my 
file.  (I was 10, give me a break :)) After that I thought of this great
utility.  I'm releasing it under the prospect that the public WILLL like it
because they may have the same problems I did.  My theory is, is that in 
ASCII mode if you write a '\n' or a '\r' the fwrite (fputc() or fputs()
whatever..) statement will write both a '\n' and a '\r' to the file.  I 
figured that during an ASCII FTP session that the FTP client is opening the
file up in 'A' or ASCII mode.  So I wrote this to try to fix that if you 
messed up, if the program encounters a '\n' or a '\r' right next to eachother
in the file (in any order..) it replaces it with a '\n' ONLY.  Not sure if
it will work because I really have to file to test this on...  

Regards:
        If you find this program worth anything to you, if you use it to 
save your butt at work and feel thankfull you had it sitting in that dusty
sector on your hard drive, feel free to write to me or send me a donation!
I can be reached in many ways.  Here are just a few:

Internet: adame@aonline.com
          Character@spideys.aonline.com
Snail Mail:
          Adam Erickson 
          Po Box 773242 
          Eagle River, Ak 99577
          USA

(US cash / cheque / money order only, please)
