All pastes #20302 Raw Edit

Miscellany

public text v1 · immutable
#20302 ·published 2005-08-18 04:09 UTC
rendered paste body
        //-- function used to determine if string from server is valid
        private Boolean IsValidResponse(string sInput)
        {
            string[] Lines = sInput.Split("\n");
            if (Lines.Length > 0)
            {
                try
                {
                    if (Lines[Lines - 2].Replace("\r", "").Substring(3, 1).Equals(" "))
                    {
                        return true;
                    }
                }
                catch
                {
                    return false;
                }
            }

            return false;
        }