Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string[] lines = File.ReadAllLines( "input.txt" );
- StringBuilder sb = new StringBuilder();
- int count = lines.Length - 1; // except last line
- for (int i = 0; i < count; i++)
- {
- sb.AppendLine(lines[i]);
- }
- File.WriteAllText("output.txt", sb.ToString());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement