Visual Basic - Clase IO

Written by lopezatienza on 29 Octubre 2008 – 11:33 -

IO.StreamWriter // nos permite I / S de archivos en dispositivos

SaveFileDialog .Title
.InitialDirectory
.Filter = " Literal \ *.doc \ Literal \ *.txt "
Literal == [ Documentos | Imagenes ]
.Filename
.DefaultExt
.CheckFileExists
.ValidateNames

Dim variable As IOStreamWriter
variable = new IOStreamWriter(SaveFileDialog1.FileName)
variable.Write(TBox.Text)
variable.close

Leer o Abrir un archivo

OpenFileDialog .Multiselect

.ShowReadOnly

.ReadOnlyChex // CheckBox archivo de solo lectura

Leer:

IO.StreamReader

Dim variable As New IO.StreamReader(OpenFileDialog.Filename)

Tbox.Text = variable.RecdToEnd
ColorDialog.Color
FontDialog.Font


Tags:
Posted in Visual Basic .NET |

Leave a Comment

RSS