Save text file in ArrayList
using System.Collections; private ArrayList TextToArraylist(string Pfad) { ArrayList Text = new ArrayList(); System.IO.StreamReader SR = new System.IO.StreamReader(Pfad); while ( SR.Peek() > -1) { Text.Add(SR.ReadLine()); } SR.Close(); return Text; }
Loads a text file into an ArrayList
Most popular snippets