M
mp
according to online elearning (ms)
to write to a debug log use the following:
'd. FileInfo fi = new FileInfo(@"c:\application.log");
' StreamWriter sw = fi.AppendText();
I can't seem to convert that to vb successfully
Dim fi As FileInfo = New FileInfo(m_DebugFileName)
'this didn't work
Dim sw As StreamWriter = New StreamWriter(fi.AppendText())
'so i tried this and still no joy
Dim sw As StreamWriter = New StreamWriter(fi)
Error 1 Overload resolution failed because no accessible 'New' can be called
with these arguments:
'Public Sub New(path As String)': Value of type 'System.IO.FileInfo'
cannot be converted to 'String'.
'Public Sub New(stream As System.IO.Stream)': Value of type
'System.IO.FileInfo' cannot be converted to 'System.IO.Stream'.
plus i see no where to pass the text i want to write to the file
any help?
thanks
mark
to write to a debug log use the following:
'd. FileInfo fi = new FileInfo(@"c:\application.log");
' StreamWriter sw = fi.AppendText();
I can't seem to convert that to vb successfully
Dim fi As FileInfo = New FileInfo(m_DebugFileName)
'this didn't work
Dim sw As StreamWriter = New StreamWriter(fi.AppendText())
'so i tried this and still no joy
Dim sw As StreamWriter = New StreamWriter(fi)
Error 1 Overload resolution failed because no accessible 'New' can be called
with these arguments:
'Public Sub New(path As String)': Value of type 'System.IO.FileInfo'
cannot be converted to 'String'.
'Public Sub New(stream As System.IO.Stream)': Value of type
'System.IO.FileInfo' cannot be converted to 'System.IO.Stream'.
plus i see no where to pass the text i want to write to the file
any help?
thanks
mark