Jump to content
GottKiller

gravar ficheiro de texto com valores de 2 listbox's

Recommended Posts

GottKiller

Boas,

Gostava de saber como posso gravar um ficheiro de texto com valores de 2 textbox's

Obrigado

Share this post


Link to post
Share on other sites
Andrepereira9

boas

tens aqui uma maneira

Dim sb As New System.Text.StringBuilder

sb.AppendLine("Texto do TextBox1" + vbNewLine)
sb.AppendLine(TextBox1.Text.ToString)

sb.AppendLine(vbNewLine + "Texto do TextBox2" + vbNewLine)
sb.AppendLine(TextBox2.Text.ToString)

IO.File.WriteAllText("C:\Ficheiro.txt", sb.ToString)


A informática chegou para resolver problemas que antes não existiam

Quem ri por último é porque está conectado a 52 Kbs.

Share this post


Link to post
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

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.