//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private static String read(String input) throws IOException private static string read(string input) { using (System.IO.StreamReader buffer = new System.IO.StreamReader(new System.IO.FileStream(input, System.IO.FileMode.Open, System.IO.FileAccess.Read))) { return(buffer.lines().filter(l => !l.Trim().StartsWith("//")).filter(l => !l.Trim().StartsWith("#")).collect(Collectors.joining("\n"))); //ignore comment - ignore comment } }