Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

how do u make an access database file and how do u make a text file write on two lines?

 

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

       writer.Write("test")
       writer.Write("test")
       writer.Flush()
       writer.Close()

Posted

and this does not work for two lines

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

       writer.Write("test")
       writer.Flush()        
       writer.Write("test")
       writer.Flush()
       writer.Close()

  • *Experts*
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...