how to read .btg files as its in binary format. I m trying to put X-Plane terrain in FlightGear. X-Plane contains .ter files in Windows and FlightGear contains .stg files in Linux. In X-Plane .dsf is in binary format and in FlightGear its .btg. I converted .dsf files into .txt format for my understanding and now my next aim is to convert .btg into .txt format. I want to knw how to convert the file. Is there any tool for conversion so that i can proceed further.
Participate on our website and join the conversation
Responses to this topic
You can use the strings command to do that. If it's not installed by default in your distro, install the binutils package.
I'm not familiar with .btg files, but you will be able to see any ASCII they contain with this command:
strings file.btgIf they contain unicode, this will probably work better: Code:
strings -el file.btgIf you get a lot of short little garbage strings, you can add a length discriminator, like -n8 to only show you strings of 8 chars or more.