WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
FileReader.cs
Go to the documentation of this file.
1 using System.IO;
2 
3 namespace DirectOutput.General
4 {
5 
9  public static class FileReader
10  {
11 
17  public static string ReadFileToString(FileInfo File)
18  {
19  return ReadFileToString(File.FullName);
20  }
21 
22 
28  public static string ReadFileToString(string Filename)
29  {
30  StreamReader streamReader = new StreamReader(Filename);
31  string Data = streamReader.ReadToEnd();
32  streamReader.Close();
33  streamReader.Dispose();
34  return Data;
35  }
36 
37 
38  }
39 }