Who said anything about a logfile? I was merely pointing out that the code
you had written has no place in a .NET app.

On Wed, Feb 16, 2011 at 11:08 PM, Davej <[email protected]> wrote:

> > On Tue, Feb 15, 2011 at 11:52 PM, Davej <[email protected]> wrote:
> > > Well, all of my past VB.NET programming has involved "drag and drop"
> > > toolbox functions, not console style code such as;
> >
> > > Dim fso, fs As Objects
> > > Set fso = CreateObject("Scripting.FileSystemObject")
> >
> > > Set fs = fso.OpenTextFile("c:\testfile.txt", 2, True)
> >
> > > fs.WriteLine "Hello world!"
> > > fs.Close
> >
> >
> On Feb 16, 1:43 am, Jamie Fraser <[email protected]> wrote:
> > That's because that isn't code that anyone should ever use!
> >
> > try:
> >
> > File.WriteallText("c:\testfile.txt", "Hello World")
> >
>
> For a log file you need to append.
>
>

Reply via email to