|
From: <Or...@us...> - 2008-12-11 12:13:07
|
Revision: 445
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=445&view=rev
Author: Oracle_
Date: 2008-12-11 11:52:47 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Fixed bug with loading input/output files. ReadToEnd() replaced with File::ReadAllText();
Modified Paths:
--------------
ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs
Modified: ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs 2008-12-11 10:10:49 UTC (rev 444)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs 2008-12-11 11:52:47 UTC (rev 445)
@@ -89,7 +89,7 @@
PointPath = pointname;
if (File.Exists(inname))
{
- input = File.OpenText(inname).ReadToEnd();
+ input = File.ReadAllText(inname);
}
else
{
@@ -98,7 +98,7 @@
if (File.Exists(outname))
{
- output = File.OpenText(outname).ReadToEnd();
+ output = File.ReadAllText(outname);
}
else
{
@@ -109,7 +109,7 @@
{
try
{
- points = Convert.ToInt32(File.OpenText(pointname).ReadToEnd());
+ points = Convert.ToInt32(File.ReadAllText(pointname));
}
catch (Exception e)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|