Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ooKriangsaKoo committed Nov 24, 2017
1 parent c84d981 commit 2b1071c
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,17 @@ public RandomAccessFileOrArray(string filename, bool forceRead)
}
else
{
Stream isp = BaseFont.GetResourceStream(filename);
//Stream isp = BaseFont.GetResourceStream(filename);
Stream isp = null;
if ("-".Equals(filename))
{
isp = ((StreamReader)Console.In).BaseStream;
}
else
{
isp = BaseFont.GetResourceStream(filename);
}

if (isp == null)
throw new IOException(filename + " not found as file or resource.");
try
Expand Down

0 comments on commit 2b1071c

Please sign in to comment.