How to remove first 6 lines from un structured text file

Hi All,

I have text file in that i need to remove first 6 lines and i need to remove **lines. How to do that?

DXE_EAST553920200217_060938.txt (4.7 KB)

Hey,
Check this out :

var text = File.ReadAllLines("DXE_EAST553920200217_060938.txt");
File.WriteAllLines("DXE_EAST553920200217_060938.txt", text.Skip(6).ToArray());

Let us know if its work :slight_smile:

Not working

@thima Check this workflow :
GetOnlyNeededPartsFromString.zip (3.1 KB)

It is working on my side, use a assign to a String array to read the lines, and after invoke code to run the second line :

image

1 Like

@thima, @supermanPunch, @Damien

THIS IS VERY EASY…

I HAVE CREATED THE WORKFLOW WITH RESPECT TO YOUR INPUTS>

@thima_Solution.xaml (9.6 KB)

KINDLY MARK THIS AS SOLUTION AND CLOSE THE POST IF YOU FOUND My SOLUTION USEFULL.

Thanks and Regards,
hacky

Check this workflow, @thima
Test.xaml (9.0 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.