How to delete first 10 lines from a string having 20 lines of data
@mani93
Can you give some more Details. Which Datatype is used. How are the lines identified eg. Newline Character …?
Hi
If we have the string input in str_input variable
Then to remove the first 10 lines
str_output = String.Join(Environment.NewLine,str_input.Split(Environment.NewLine.ToArray).ToList.RemoveRange(0,10))
Cheers @mani93
4 Likes
@ppr
Its just a String and lines are identified with Newlines
@mani93 so give a try on @Palaniyappan Suggestion. Happy coding
1 Like