risolto usando
Codice PHP:
Dim fs As New FileStream("file.doc"FileMode.CreateFileAccess.Write)
    
'declaring a FileStream and creating a word document file named file with 
    '
access mode of writing
    Dim s 
As New StreamWriter(fs)
    
'creating a new StreamWriter and passing the filestream object fs as argument
    s.BaseStream.Seek(0, SeekOrigin.End)
    '
the seek method is used to move the cursor to next position to avoid text to be
    
'overwritten
    s.WriteLine("This is an example of using file handling concepts in VB .NET.")

    '
writing text to the newly created file
    s
.Close()
    
'closing the file