PDA

View Full Version : loading file of unspezified type


Unregistered
October 30, 2002, 13:08:33
Hello,

here is the situation:

I'm using the Loadmethode as discribed like TXTextControl.Load FileName[, Offset[, Format[, CurSelection]]]. This Methode needs the format option. If the format option is not set the txcontrol internal format is used. With the wrong format option the methode fails.

Sometimes I don't know exactly what format the file I want to load is. Is there some possibility to check the fileformat before loading?

Thanks for any help.

Regards,
Michael Fratz


This message was originally posted by Michael Fratz in the old TX Text Control Support Forum.

Unregistered
October 31, 2002, 02:41:56
Only by opening the file is binary and having a look at what is there. Means that you will need to examine to file headers of your files and assign a type depending on the header


This message was originally posted by Matt in the old TX Text Control Support Forum.

Unregistered
October 31, 2002, 20:37:36
Hello,

this is a workaround. Thank you.

I'm just looking for the TX Text Control format. I just want to see if it is TX Text Control. Then I would load it with the format 3 and otherwise just leave it. But it seems that the header differ depending on the version. Within the TX Text Control format the header changend from version 6 to version 10?

Thanks,
Michael Fratz


This message was originally posted by Michael Fratz in the old TX Text Control Support Forum.