Hello everyone!
This is my first post, so take it easy... hehe
I'm a begginer in programming, started few weeks ago, and I choose C as the first language to learn since I faced this task at while studying. So, let me explain what's going on... Well, I have a .txt file that contains, together with a few characters, columns of values that I want to save in different files like is written in the program (file 1, file2, file3 - a with x, b with y, c with z).
The pattern of the source text file is like this:
known_vector frame1 151 65 0 frame2 151.000763 64.538582 0.563737
known_vector frame1 152 65 0 frame2 152.000702 64.542488 0.560822
known_vector frame1 153 65 0 frame2 153.000671 64.546150 0.558089
.
.
.
Until now I could manage to split the files, but the output gives me only zeros.
First the program count the number of lines of the read text file, then it should display the desired columns of double values in three other .txt files.
I've got for the three .txt files columns like this:
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
.
.
.
Could someone help me??? Probably it is an easy to solve mistake, once everything is new for me...
Extr.c
Cheers!!!![]()



LinkBack URL
About LinkBacks



