Lars Gullik Bjønnes wrote:

> As it is not you are not all-files-type-proof, if I tried to load the
> lyx binary as a graphcs file it would most likely fail, or just read
> _a lot_ too much.

please edit, I never did it in this way (reading from a file)
support/filetools.C - getExtFromContents()

char dummy[64];     // my brain thinks binary ...

[...]

        ifs.read(dummy, 64);
        str = string(dummy);
[...]


Herbert


-- 
http://www.lyx.org/help/

Reply via email to