(I have no idea how hard the question is, so I choosed moderate)
I have information; alphabetic, numeric or alphanumeric, I want to create a textfile with fixed positions for the fields. I looked for it
everywhere and sometimes I see a simular question, but never an answer, but I can not imagine it is not possible.
Position 1-3, length 3 Currency code
Position 4-21, length 17 numeric value of which 6 figures before the point
and 10 after, but the point has a fixed position.
Position 22-29, length 8 date format eejjmmdd
Example of the suggested outputfile:
EUR 2.20371 19990531
ITL 0.00000004 19990531
XXX 123.654321 19990531
I tried with the WRITELN([var f: text;] p1[,p2, ,Pn]) ,but this is no success, I realise the P1 is the width.
I am looking for the general way to solve this question in future in Delphi and/or Pascal.
If you do not have a example, can you give me a hint how to solve this and/or which keword I have to use for finding
something like this (to build on further).
Thanks in advance for any reaction,
If I can help by sending you a program that reads a text file with a textfile to read, I will do this with pleasure.