Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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