Пример #1
0
        /// <summary>
        /// Loads the include text.
        /// </summary>
        /// <param name="requestFileName">Name of the request file.</param>
        /// <param name="content">The content.</param>
        /// <param name="location">The location.</param>
        /// <returns></returns>
        public bool LoadIncludeText(string requestFileName, out string content, out string location)
        {
            //if the argument is the fully qualified path of an existing file,
            //then we are done
            //----------------------------------------------------------------
            RepositoryFile rfi = new RepositoryFile(requestFileName);

            content  = rfi.ReadContent();
            location = String.Empty;
            if (content != String.Empty)
            {
                location = rfi.LocalPhysicalPath;
                return(true);
            }

            return(false);
        }