text: public static string readAsciiLine(java.io.InputStream @in){java.lang.StringBuilder result = new java.lang.StringBuilder(80);while (true){int c = @in.read();if (c == -1){throw new java.io.EOFException();}else{if (c == '\n'){break;}}result.append((char)c);}int length = result.Length;if (length > 0 && result[length - 1] == '\r'){result.setLength(length - 1);}return result.ToString();}