how do u make a file

p4p800

Member
Joined
Mar 2, 2004
Messages
10
how do u make an access database file and how do u make a text file write on two lines?

Code:
Dim writer As New System.IO.StreamWriter("C:\test.txt")

        writer.Write("test")
        writer.Write("test")
        writer.Flush()
        writer.Close()
 
and this does not work for two lines
Code:
Dim writer As New System.IO.StreamWriter("C:\test.txt")

        writer.Write("test")
        writer.Flush()        
        writer.Write("test")
        writer.Flush()
        writer.Close()
 
First you would need to create an Access database in Access then you can connect to the DB using classes inside System.Data.OleDb namespace.
 
Back
Top