grd974
07-29-2007, 02:06 PM
I wrote down this code after msdn library, compiled it as an indicator, put it over a chart, ran Market Replay but it did not write to any file.
public static void Main()
{
string path = @"C:\TEMP\MyTest.txt";
if (!File.Exists(path))
{
using (StreamWriter sw = File.CreateText(path))
{
sw.WriteLine("Hello World");
}
}
}
Where is the error ?
public static void Main()
{
string path = @"C:\TEMP\MyTest.txt";
if (!File.Exists(path))
{
using (StreamWriter sw = File.CreateText(path))
{
sw.WriteLine("Hello World");
}
}
}
Where is the error ?