daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string[] lines = File.ReadAllLines( "input.txt" );
  2. StringBuilder sb = new StringBuilder();
  3. int count = lines.Length - 1; // except last line
  4. for (int i = 0; i < count; i++)
  5. {
  6. sb.AppendLine(lines[i]);
  7. }
  8. File.WriteAllText("output.txt", sb.ToString());
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top