Member Avatar for Kevin_160

Hi guys,

I have a txt file in which each line contains information in following format:

VELOCITY<100.0>
LAT_1<N 00 00.0000>
LON_1<E 000 00.0000>
SIMULATE<false>

I would like to write a C or C++ programm to select only the values of the words I need. I need those values to do further calculations.
In this example I would need 100.0 and 00 00.0000 and 000 00.0000

I'm just beginning to programm in C, so could anybody help me writing this code?

Thx,

Kevin

You said you'd like to write a program - well what do you have so far.

Don't cross post

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.