Skip to content

Commit

Permalink
Fixed inconsistencies of file access methods
Browse files Browse the repository at this point in the history
Resolved #1
  • Loading branch information
hsaito committed Mar 18, 2017
1 parent 7b6ae37 commit 18af6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GnuPG_Buildkit_Package_Lister/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static string ExtractVersion(string data, string component)
static List<string> GetComponents()
{
List<string> components = new List<string>();
using (var sr = File.OpenText("config.xml"))
using (var sr = new StreamReader(new FileStream("config.xml", FileMode.Open)))
{
XElement element = XElement.Load(sr);
var component_group = element.Element("components");
Expand Down

0 comments on commit 18af6b2

Please sign in to comment.