Exemplo n.º 1
0
        /// <summary>
        /// Reads the next single line, that is not a comment and that is relevant ("not {")
        /// </summary>
        /// <returns>The line.</returns>
        /// <param name="reader">Reader.</param>
        private String nextLine(KSP.IO.TextReader reader)
        {
            String str = reader.ReadLine();

            if (str != null)
            {
                str = str.Trim();
            }
            while (str != null && (str.Length == 0 || str.Equals("{") || str[0] == '#'))
            {
                str = reader.ReadLine();
                if (str != null)
                {
                    str = str.Trim();
                }
            }
            return(str);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Reads the next single line
        /// </summary>
        /// <returns>The line.</returns>
        /// <param name="reader">Reader.</param>
        private String nextLine(KSP.IO.TextReader reader)
        {
            String str = reader.ReadLine();

            return(str);
        }