I need to write a .dat file to be read by a program. The problem is that this .dat has 2700 lines and I can not write fprint for each line. Here is an extract of the program:
CASO TESTE LE e LDireito < MACH >< ALPHA >[ BETA ]< RE >< CAX >< SW > 0.840 0.30000 0. 33000000. 3.194 72.7200 [ ICL ][ CL ][ DCLDA ] 0. .45 .10 [ PSE ][ DELWING][ IBEAM ][ IAIL ][ IROT ][ IBLF ] 1. 0. 0. 0. 0. 0. [ PA1 ] 0.70 [ PA2 ] .77
Some of these numbers are not variable, so they can be written, but some are variables and must be %10f.
What can I do?
No products are associated with this question.
2700 rows of text should be no problem to write with fprintf and a loop. The resulting file will be a couple of MB at most. There is no better way.
You need to be more specific on the reason to why you write "I can not write fprint for each line."