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;
}
 

Download this snippet

Loads a text file into an ArrayList

Twitter Twitter

2 Comments to “ Save text file in ArrayList”

  1. Anonymous  on Mar 14, 2010

    zJECVp <a href="http://ejzakytuinrk.com/">ejzakytuinrk</a>, [url=http://qutrvdkquvom.com/]qutrvdkquvom[/url], [link=http://zgmuzsuriwcr.com/]zgmuzsuriwcr[/link], http://cflvnjlwubdv.com/

  2. Anonymous  on Jun 10, 2010

    cECf2t <a href="http://zmctdrzbwbyh.com/">zmctdrzbwbyh</a>, [url=http://nrenxceiqlrg.com/]nrenxceiqlrg[/url], [link=http://xfivfflmzxas.com/]xfivfflmzxas[/link], http://ugknghkxvhjr.com/

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>