Azavea.NijPredictivePolicing.AcsAlchemistGui.FormController.ValidateVariablesFile C# (CSharp) Method

ValidateVariablesFile() private method

Performs some sanity checks on our variables file (does it exist, can I read it, does it have at least one variable, etc.)
private ValidateVariablesFile ( string filename, string &errorMessage ) : bool
filename string
errorMessage string
return bool
        internal bool ValidateVariablesFile(string filename, out string errorMessage)
        {
            if (!File.Exists(filename))
            {
                errorMessage = "File does not exist";
                return false;
            }

            //EXTRA CREDIT: read / parse file, make sure it is a valid variables file

            //DOUBLE BONUS EXTRA CREDIT: read / parse file, lookup corresponding description in sequence file, display to user

            errorMessage = string.Empty;
            return true;
        }