Mi sembra molto interessante questa soluzione in C# ma non sono in grado di tradurla in Vb
codice:using (System.IO.StreamReader sr = new System.IO.StreamReader("path")) { int fileNumber = 0; while (!sr.EndOfStream) { int count = 0; using (System.IO.StreamWriter sw = new System.IO.StreamWriter("other path" + ++fileNumber)) { sw.AutoFlush = true; while (!sr.EndOfStream && ++count < 20000) { sw.WriteLine(sr.ReadLine()); } } } }

Rispondi quotando
