Go Back   GameKiller - Maple Story Hacks, Combat Arms Hacks & WonderKing Hacks > Programming & Reversing > General Programming & Reversing

Need some VB 2008 Help.

This is a discussion on Need some VB 2008 Help. within the General Programming & Reversing forums, part of the Programming & Reversing category; Hey GK Users. Im trying to make a program that i'll later release here but first off I need some ...


Reply
 
LinkBack Thread Tools Display Modes
Old 01-05-2010, 09:57 PM   #1
[$]
Newbie
Feedback Score: 0 reviews
 
[$]'s Avatar
 
Join Date: Dec 2009
Location: teh internet!
Posts: 40
Thanks: 5
Thanked 0 Times in 0 Posts
Default Need some VB 2008 Help.

Hey GK Users.

Im trying to make a program that i'll later
release here but first off I need some help.
I need some instruction or code on how to
change an extension to .txt, replace a line
from that .txt with the text in a textbox input
then return the .txt back to its original extension.

If anyone is a VB guru and would like to help
me, please post a reply below, it would be a
huge help if you could.

Thanks a BUNCH,
[$] Parker
[$] is offline   Reply With Quote
Sponsored Links

Old 01-06-2010, 05:16 PM   #2
Overlord
Feedback Score: 0 reviews
 
Dwarf's Avatar
 
Join Date: Jul 2009
Location: Texas
Posts: 804
Thanks: 78
Thanked 192 Times in 67 Posts
Default Re: Need some VB 2008 Help.

What are you talking about? A filedialog?
Dwarf is offline   Reply With Quote
Old 01-06-2010, 06:24 PM   #3
1337
Feedback Score: 0 reviews
 
Iamazn's Avatar
 
Join Date: Jul 2009
Location: California
Posts: 1,447
Thanks: 79
Thanked 1,451 Times in 219 Posts
Send a message via AIM to Iamazn Send a message via MSN to Iamazn
Default Re: Need some VB 2008 Help.

Code:
Imports System.IO

'Will auto create the TXT file if it doesnt exist.
 File.AppendAllText("Path", "Contents")
Example:
Code:
Imports System.IO
File.AppendAllText(Application.StartUpPath & "\Readme.txt",TextBox1.text)
Iamazn is offline   Reply With Quote
Old 01-06-2010, 07:02 PM   #4
lol

Feedback Score: 0 reviews
Tetris Champion
 
Join Date: Jul 2009
Posts: 355
Thanks: 7
Thanked 591 Times in 69 Posts
Default Re: Need some VB 2008 Help.

What Iamazn said. But you know you don't need to change the extension to .txt to write to it.
Howei is offline   Reply With Quote
Old 01-06-2010, 08:00 PM   #5
1337
Feedback Score: 0 reviews
 
Iamazn's Avatar
 
Join Date: Jul 2009
Location: California
Posts: 1,447
Thanks: 79
Thanked 1,451 Times in 219 Posts
Send a message via AIM to Iamazn Send a message via MSN to Iamazn
Default Re: Need some VB 2008 Help.

Originally Posted by Howei View Post
What Iamazn said. But you know you don't need to change the extension to .txt to write to it.
Exactly. If you want to attempt to hide this text from your user, instead of
Application.StartUpPath & "\Readme.txt"
do
Application.StartUpPath & "\SomeFile.exe" 'replace .exe with any file extension you want.
Iamazn is offline   Reply With Quote
The Following User Says Thank You to Iamazn For This Useful Post:
[$] (01-06-2010)
Old 01-06-2010, 10:59 PM   #6
[$]
Newbie
Feedback Score: 0 reviews
 
[$]'s Avatar
 
Join Date: Dec 2009
Location: teh internet!
Posts: 40
Thanks: 5
Thanked 0 Times in 0 Posts
Default Re: Need some VB 2008 Help.

Thanks everyone for all your help
Worked like a charm, :yes:
[$] is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads for: Need some VB 2008 Help.
Thread Thread Starter Forum Replies Last Post
My First Ever Program in VB 2008 ProSora Distribution 21 01-12-2010 11:09 PM
[Help] Executing a resource in Vb 2008 Dwarf General Programming & Reversing 1 12-15-2009 06:54 AM
Visual Basic 2008 montop77 Soldier Front 0 12-14-2009 10:14 PM
VB 2008 Express~ WriteProcess HELP ruman3012 General Programming & Reversing 4 10-18-2009 11:18 PM
Help Visual Basic 2008 pepsicola1 General Programming & Reversing 5 08-20-2009 03:28 PM


GameKiller.net is not responsible for any content in any posting made by users on the site.