Hi guys
I see blue line underneat the word FileStream in the following code in
line 2.
Can any one help me to find out what am I missing
Imports System.IO
Imports System.Windows. Forms
Public Class Form1
Inherits System.Windows. Forms.Form
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s)Handles Button1.Click
1 Dim DestinationLoc = "c:\Stream. txt"
2 Dim FS As FileStream = New File.Open(Desti nationLoc,
FileMode.OpenOr Create, _
3 FileAccess.Read Write)
4 Dim s As New StreamWriter(FS )
5 s.BaseStream.Se ek(0, SeekOrigin.End)
6 s.WriteLine("Th is is an example of using file handling
concepts in VB .NET.")
7 s.WriteLine("Th is concept is interesting.")
8 s.Close()
End Sub
End Class
I see blue line underneat the word FileStream in the following code in
line 2.
Can any one help me to find out what am I missing
Imports System.IO
Imports System.Windows. Forms
Public Class Form1
Inherits System.Windows. Forms.Form
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s)Handles Button1.Click
1 Dim DestinationLoc = "c:\Stream. txt"
2 Dim FS As FileStream = New File.Open(Desti nationLoc,
FileMode.OpenOr Create, _
3 FileAccess.Read Write)
4 Dim s As New StreamWriter(FS )
5 s.BaseStream.Se ek(0, SeekOrigin.End)
6 s.WriteLine("Th is is an example of using file handling
concepts in VB .NET.")
7 s.WriteLine("Th is concept is interesting.")
8 s.Close()
End Sub
End Class
Comment