Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How To Read ini Files?


lexkymbeth
 Share

Recommended Posts

Ive never done this and trying to load a ini file that has msges in it [kinda like a news system] i want the ini file to look like this
```
[MSG]
1=MsgHere
2=MsgHere
3=MsgHere
4=MsgHere
5=MsgHere

```
And My code is

```
Public SeverEvents
Dim msgI As Integer
Dim msg As String
msgI = Int(Rnd() * 3)
Select Case msgI
Case 0
msg = "INI MSG"
Case 1
msg = "INI MSG"
Case 2
msg = "INI MSG"
Case 3
msg = "INI MSG"
Case 4
msg = "INI MSG"
Case 5
msg = "INI MSG"
End Select
Call GlobalMsg("SeverEvents: " & msg, Blue)
Call TextAdd("SeverEvents: " & msg)
End Sub
```I want the msgs in ini file to replace the Ini msg of course

Thanks
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...