>I have an old dos program that uses dat files to store the data and I'm
>trying to convert to dotnet. I'd like to be able to import the data into an
>access database but I don't know which format the dat files are in. Here is
>the first few lines of the dat file. If anyone could help me figure out
>which type this is it would be greatly appreciated.
[snip file contents]
Is the old DOS program a home-grown one, or an off the shelf package?
If home-grown do you have access to the source code? If it's a
package, you could try searching on http://www.wotsit.org although
there is only one ".dat" type file listed, for DataFlex:
http://www.wotsit.org/search.asp?s=database.
Failing all that, reverse engineering the file ought to be possible,
judging from the chunk you posted. Try using a hex editor rather than
trying to view the file as plain text.
Do you think this file contains only a single record type, or are all
record types for the application held in this file? Are there any
files of other types, e.g. indexes or other control files?
The likelihood is there will be a header block, containing information
such as file version, length of file, possibly pointers to the first
data record and the first deleted record and "other stuff" which you
may or may not be able to work out the function. After that I'd
expect to see the records. The binary embedded in the records
themselves are either numeric fields, or control information. If the
former, then it should be reasonably trivial to work out the record
length and go from there. if the latter then you likely have variable
length records, and so you should expect to see a record header block
containing the overall record length, plus field headers for the
variable length fields. It will be quite time-consuming, but it ought
to be possible.
If you still have the original application, you could compare what it
shows you on screen with what is in the file and use that as a clue to
the file contents. Alternatively, ow many records are there? If
there aren't too many it might be quicker/simpler just to copy the
data from the old application to the new one by hand.
Lemming

Signature
Curiosity *may* have killed Schrodinger's cat.