Jump to content

Check out our Community Blogs


Member Since 23 Jun 2010
Offline Last Active Jun 23 2010 10:20 AM

Topics I've Started


23 June 2010 - 09:17 AM

I was wondering if someone could tell me why my script isn't working?

I expect it to write "Hello word" to log.txt on my desktop?

public struct _cnf
        public string logS;

     static void form1(_cnf cnf)
         cnf.logS = "C:\\Users\\Tom\\Desktop\\log.txt";
         StreamWriter logF = new StreamWriter(cnf.logS);
         logF.WriteLine("Hello World");

There are no compiling errors, it just doesn't write anything in log.txt

any ideas? :(


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download