convert a s19 file to a binary file in a special format