Click here to Skip to main content
Page 1 of 1
Page Size: 10 · 25 · 50


Author filtered by: JSMW [x]
Answer 13 May 2013   license: CPOL
// input string:.. String testText = @"This is my test text string"; // number of lines to take away from the result int toRemove = 2; // turn the input string into an array (split by newlines) List testLines = new List(testText.Split(new...
C#
Answer 13 May 2013   license: CPOL
// input string:.. String testText = @"This is my test text string"; // line indexes to take away from the result int[] toRemove = {2, 4}; // turn the input string into an array (split by newlines) List testLines = new List(testText.Split(new...
C#
Answer 11 May 2013   license: CPOL
String testText = @"This is my test text string"; int[] toRemove = {2, 4}; List testLines = new List(testText.Split(new String[] { Environment.NewLine }, StringSplitOptions.None)); int backpace = 0; foreach(int lineNo in toRemove) { int...
C#

Page 1 of 1


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid