|
valid director external cast file
> May I know is there any way I could use to detect whether the loaded file is
> a valid director external cast file ?
you can check out the first bytes of a file by using fileio f.ex
file byte/char
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
dir R I F X M V 9 3 i m a p
cst R I F X M V 9 3 i m a p
dcr R I F X 1 F G A D
cct R I F X C F G A D
or, on apple macintosh machines you can test the types/creators via fileio
file type creator
dir 6: dir MV97 MV97
cst MC97 MV97
dir 7: dir MV07 MD00
cst MC07 MD00
dir 8: dir MV08 MD01
cst MC08 MD01
dcr FGDM MD01
cct FGDC MD01
----
regards
dietrich roland
|