This is the data in the text file ,

8=FIX.4.39=6135=534=149=IDE50=FX52=20101219-18:05:01.52256=SAXOQUOTE10=171
8=FIX.4.39=6135=034=549=IDE50=FX52=20101219-18:07:02.50156=SAXOQUOTE10=170

and I want to print only specific values from this text files in C#.

The output should like this:
8=FIX.4.3 35=5 52=20101219-18:05:01.522
8=FIX.4.3 35=0 52=20101219-18:07:02.501


Please help me with this thread.

A simple way would be to read each line as strings and then use simple string manipulation like the following:

var
  before, after : string;

begin
  // Try to replace all occurrences of a or A to THE
  before := 'This is a way to live A big life';

  after  := StringReplace(before, ' a ', ' THE ',
                          [rfReplaceAll, rfIgnoreCase]);
  ShowMessage('Before = '+before);
  ShowMessage('After  = '+after);
end;

Before = This is a way to live A big life
After = This is THE way to live THE big life

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.