AODL.Document.Import.PlainText.CsvImporter.GetFileContent C# (CSharp) Method

GetFileContent() private method

Gets the content of the file.
private GetFileContent ( string fileName ) : ArrayList
fileName string Name of the file.
return System.Collections.ArrayList
		private ArrayList GetFileContent(string fileName)
		{
			ArrayList lines						= new ArrayList();

			try
			{
				StreamReader sReader	= File.OpenText(fileName);
				string currentLine		= null;

				while((currentLine = sReader.ReadLine()) != null)
				{
					lines.Add(currentLine);
				}
				sReader.Close();
			}
			catch(Exception ex)
			{
				throw ex;
			}

			return lines;
		}
	}