Quote:
Originally Posted by GeorgeS
Just tried the 08 version and the syntax to write and read text files is entirely different, and very hard. Is this something that's different in 08 over the 05 version? Can't believe it's that different. Might as well start learning VC++
GeorgeS
|
Reading and writing files is not that hard and is done the same way in 08 as 05.
Writing to a simple text file is as easy as:
Code:
Dim oWriter As StreamWriter
oWriter = File.AppendText(Filename)
oWriter.WriteLine(Message)
oWriter.Close()
You will need to add:
to you the top of your file if it is not already there as well.
As for accessing MySql you will need to download the MySql.Net connector from
http://www.mysql.com
This connector functions exactly like any ADO.Net connector so any tutorial on ADO.Net will give you how it works, you just need to change the varaible types to the appropriate MySql connector types such as:
MySqlDataReader
MySqlDataAdapter
as opposed to:
SqlDataReader
SqlDataAdapter
DataTables and DataSets are all the same whether you use MySql or any other DB.