You are here:

C/using C to convert file formats

Advertisement


Question
I am converting raw binary data from a GPS into a standard format (RINEX v3.00).  The raw data contains several different types of records and I have arrays designed for each record type and will be able to format these correctly for use.
I need to open the raw as read only binary and create the new file as ASCII.  Can you direct me to a good source for answers?
thank you
Trip

Answer
Are you looking for a C source code?
If that is so, I don't know.

If you want to know how to open file, etc....then here is how you can do that:
To open a binary file in read mode: fopen(filename, "rb");
To read the file: fread(buffer, size of each item, number of items, file pointer).

Hope this helps you.
Do let me know, if you need more help.

Regards,
Narendra

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.