From the CUTTING program I get a file with the .TXT extension and it contains the trace information:

№ Длина Координата Примечание 3 591 0 114-2012Т1Я1 Изд1 Пр2 Св 

Constants refers (T, I, Ed, Pr, St). The number of lines also varies, maybe one or maybe a lot. I need to get a second one from this file (file label).
This type:

 114-2012 Т 1 Я 1 Изд 1 Пр 2 СВ 591 3 

Theoretically, I understand how to do it.
But practically, I do not know how to start. I'd like to figure it out myself.
I tried to do it through StringGrid with printout - to TXT format file

 114-2012 Т 1 Я 1 Изд 1 Пр 2 СВ 591 3 

I can not. The sequence is respected. But it displays in one line.
If you have the opportunity to show with a small example how to solve this problem.

    1 answer 1

    And the newline character (code # 13 or another - see help) Do you catch? And about printing: if you have a file label with a TXT formatted file (line breaks - carriage return), then, under Win, the ShellExecute function with the print parameter - that's all. PS You have Delphi, so everything is decidedly elementary.