Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::GeorgeS's Tools

Development::GeorgeS's Tools A forum just for GeorgeS's tools

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 06-16-2008, 08:00 PM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

Quote:
Originally Posted by GeorgeS View Post
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:
Code:
Imports System.IO
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.
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:43 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3