Encog.Util.DirectoryUtil.ReadTextFile C# (CSharp) Method

ReadTextFile() public static method

Read the entire contents of a stream into a string.
public static ReadTextFile ( String filename ) : String
filename String The input stream to read from.
return String
        public static String ReadTextFile(String filename)
        {
            Stream stream = new FileStream(filename, FileMode.Open);
            String result = ReadStream(stream);
            stream.Close();
            return result;
        }
#endif