Kinda remember when I made my first realmlist editor and it didnt work for everybody etc so i figured id make one for learning purposes that works for all languages and install locations.
Screenie:
http://i293.photobucket.com/albums/m...tw/program.jpg
It's kinda retarded level of programming for most of you, but i started VB a few weeks ago and havent gotten so far i guess due to my age its hard to understand the more complex stuff.. so if you think it's retarded don't flame mmk?
Firstly, make a Windows Forms App
Name it Whatever.
Make a RichTextbox
A button
Another RichTextbox
And another Button
so 2 RichTextboxes and two buttons
Call the first button "Find Realmlist"
And the second one "Save Realmlist"
In the code for the first button put this:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim FILE_NAME As String = RichTextBox2.Text
If System.IO.File.Exists(FILE_NAME) = True Then
Dim objReader As New System.IO.StreamReader(FILE_NAME)
RichTextBox1.Text = objReader.ReadToEnd
objReader.Close()
Else
MsgBox("File Does Not Exist")
End If
End Sub
In the code for the second buttom put this:
Code:
Dim FILE_NAME As String = RichTextBox2.Text
If System.IO.File.Exists(FILE_NAME) = True Then
Dim objWriter As New System.IO.StreamWriter(FILE_NAME)
objWriter.Write(RichTextBox1.Text)
objWriter.Close()
MsgBox("Text written to file")
Else
MsgBox("File Does Not Exist")
End If
Now, press f5 and figure out wich textbox does what...(Look at my screenie and youll understand)
Ehh thats it.. hf