Skip to content

Instantly share code, notes, and snippets.

@hagbarddenstore
Created March 19, 2014 12:33
Show Gist options
  • Save hagbarddenstore/9640739 to your computer and use it in GitHub Desktop.
Save hagbarddenstore/9640739 to your computer and use it in GitHub Desktop.
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);
}
}
}
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