How can i get nth Byte from a binary file?

i am writing a notes script if the attached file is encrypted or not. for that, i have to get the 8 bytes of the file with hexa decimal, starting 40th byte. how can i do that? which class/method can i use?

any help will be welcomed. thanks in advance.

Subject: how can i get nth Byte from a binary file?

That would be the NotesStream class.

Look in the designer help file for specifics and examples.

cheers,

Bram