Advertisement

test

Started by May 03, 2011 12:26 PM
-1 comments, last by Usagi412 13 years, 4 months ago
[ source lang="csharp"] <-- remove space before 'source'

using System;
using System.IO;

class Test {
private static void Main() {
for (int i = 0; i < 5000; i++) {
using (TextWriter w = File.CreateText("C:\\tmp\\test\\log" + i + ".txt")) {
string msg = DateTime.Now + ", " + i;
w.WriteLine(msg);
Console.Out.WriteLine(msg);
}










}
Console.In.ReadLine();
}
}

[ /source ]

This topic is closed to new replies.

Advertisement