Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 02-15-2010, 12:29 AM   #1
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Output to Text File

I Feel like such a dunce but i have had a mind freeze. I Have done this many times yet i have *Completely* Forgotten how to Out put Text boxes to a Text File.

Basically i just want to output some fields to a text box in Visual Studio.
__________________

__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Old 02-15-2010, 01:01 AM   #2
In Runtime
 
ohm55's Avatar
 
Join Date: Feb 2010
Posts: 141
Default Re: Output to Text File

O_o
uh, visual C++, C, C#, basic? Which template are you using?
__________________

__________________
You are such a good friend that if you and me were the last two people trapped on a sinking boat with only 1 life vest left, i would remember and pray for you every day.
Funny how Communism is so bad in Politics but so good with software!
My reputation is in the Red, so why doesnt it say "ohm55 needs rehab" when I put my mouse over it?
ohm55 is offline   Reply With Quote
Old 02-15-2010, 01:06 AM   #3
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Output to Text File

Sorry,In VB. What do you mean template?
__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Old 02-16-2010, 08:46 AM   #4
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Output to Text File

Bump. It's such a simple answer and i feel stupid for not knowing the answer (Considering i made a full word processor a year back).

Some one please help
__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Old 02-16-2010, 10:41 PM   #5
Guru
 
JogaBonito1502's Avatar
 
Join Date: Jan 2008
Location: U.S.
Posts: 7,841
Default Re: Output to Text File

Hopefully, this will serve at least a single purpose with a friendly bump. I quickly Google'd it and came up with this: http://www.astahost.com/info.php/tex...net_t6372.html

I'd be more of help if you were programming C++. Sorry.
JogaBonito1502 is offline   Reply With Quote
Old 02-16-2010, 11:28 PM   #6
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Output to Text File

Edit,I Just get errors

P.s i did google a bit on the subject but didnt stumble across that link.

So after much deliberation i have found that a modified version of this code works perfect!

Dim savef As New System.IO.StreamWriter("c:/text.txt")
savef.Write(textbox1.text + ControlChars.NewLine + textbox2.text + ControlChars.NewLine + textbox3.text)
savef.Close()

I Just need to figure out how to use the Save file dialog
__________________

__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off



All times are GMT -5. The time now is 10:50 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0