private String Makejavascript()
{
//需要引用 using System.IO;
String Jieguo = null;
try
{
using (StreamReader sr = new StreamReader(Request.PhysicalApplicationPath + "javascript.txt"))
{
string line;
line = sr.ReadToEnd();
//while ((line = sr.ReadLine()) != null)
//{
// Console.WriteLine(line);
//}
Jieguo = line;
}
}
catch (Exception e)
{
// Let the user know what went wrong.
//Console.WriteLine("The file could not be read:");
//Console.WriteLine(e.Message);
Jieguo = "The file could not be read:" + e.Message;
}
{
//需要引用 using System.IO;
String Jieguo = null;
try
{
using (StreamReader sr = new StreamReader(Request.PhysicalApplicationPath + "javascript.txt"))
{
string line;
line = sr.ReadToEnd();
//while ((line = sr.ReadLine()) != null)
//{
// Console.WriteLine(line);
//}
Jieguo = line;
}
}
catch (Exception e)
{
// Let the user know what went wrong.
//Console.WriteLine("The file could not be read:");
//Console.WriteLine(e.Message);
Jieguo = "The file could not be read:" + e.Message;
}