OpenSim.OpenSim.PrintFileToConsole C# (CSharp) Method

PrintFileToConsole() private static method

Opens a file and uses it as input to the console command parser.
private static PrintFileToConsole ( string fileName ) : void
fileName string name of file to use as input to the console
return void
        private static void PrintFileToConsole(string fileName)
        {
            if (File.Exists(fileName))
            {
                StreamReader readFile = File.OpenText(fileName);
                string currentLine;
                while ((currentLine = readFile.ReadLine()) != null)
                {
                    m_log.Info("[!]" + currentLine);
                }
            }
        }