Created
March 19, 2014 12:33
-
-
Save hagbarddenstore/9640739 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
namespace A | |
{ | |
public class B | |
{ | |
private string _configurationFilePath = "config.txt"; | |
private string _recPath = string.Empty; | |
public string ReadConfig() | |
{ | |
return File.ReadAllText(_configurationFilePath); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
namespace A | |
{ | |
public class B | |
{ | |
private string _configurationFilePath = "config.txt"; | |
private string _recPath = string.Empty; | |
public IEnumerable<string> ReadConfig() | |
{ | |
return File.ReadLines(_configurationFilePath); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment