示例#1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private List<String> buildLines() throws java.io.IOException
        private IList <string> buildLines()
        {
            IList <string> list = new List <string>();

            using (System.IO.StreamReader br = new System.IO.StreamReader(new File(fileName)))
            {
                string line;
                while (!string.ReferenceEquals((line = br.readLine()), null))
                {
                    list.Add(line);
                }
            }
            return(list);
        }