L 
		
								
				
				
			
		Leo
In my vb.net project, I created a module1.
and in module1, I declared the "sw" as a new streamwriter.
Public sw As StreamWriter = New StreamWriter("OutPut.txt")
In Form1.vb, I got an error with the following code.
sw.writeLine(datetime.now)
(I tracked the code and in the watch window, I found "sw"
is nothing.)
Can somebody tell me why ?
				
			and in module1, I declared the "sw" as a new streamwriter.
Public sw As StreamWriter = New StreamWriter("OutPut.txt")
In Form1.vb, I got an error with the following code.
sw.writeLine(datetime.now)
(I tracked the code and in the watch window, I found "sw"
is nothing.)
Can somebody tell me why ?
 
	