Working with TXT file. Select data from TXT

The question was asked: 6 years 11 months ago   views: 23
0

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

 No. Length Coordinate Of The Note

 3 591 0 114-2012Т1Я1 Изд1 PR2 SV

Constants apply (T, I, Ed, PR, SV). The number of rows changes too may be one and may be too much.I need this file to a second file (the label).
Like this one:

114-2012 T 1 I 1 
Ed 1 PR 2 
SV 591 3

Theoretically I know how to do.
But practically, I don't know how to start. Really want to understand.
I tried to do it through StringGrid with the printed output is in TXT file format

114-2012 T 1 I 1 
Ed 1 PR 2 
SV 591 3

I can't do it. The sequence observed. But displays in one line.
If You have the opportunity to show on a small example how to solve this problem.

Answers   1

0

A line feed character (code #13 or the other - see the FAQ) You catch? About the print: if You have a file label with a conditionally-formatted TXT file (line breaks - carriage return) under Win ShellExecute with the print option. PS You Have Delphi, so all is elementary solved.

Answered: Вячеслав Кириченко Вячеслав Кириченко 21-06-2012 в 21:55:05