Buenas noches, alguna idea de como guardar un txt modificado en datagridview.
Private Sub CargarToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles CargarToolStripMenuItem.Click
Try
If (CargarToolStripMenuItem.Text <> String.Empty) Then
Dim leer As New StreamReader("d:\Archivos de programa\arroz\especial.dat")
Dim texto As String = ""
Dim count As Integer = 25
Dim split As String() = Nothing
While (Not texto Is Nothing)
texto = leer.ReadLine
If (Not texto Is Nothing) Then
split = texto.Split(New Char() {CChar("'"), CChar(":"), CChar(";")}, count)
DataGridView1.Rows.Add(split(1), split(1), split(2), split(3), split(4), split(5), split(6), split(7), split(8), split(9), split(10), split(11), split(12), split(13), split(14), split(15), split(16), split(17), split(18), split(19), split(20), split(21), split(22), split(23))
End If
End While
Else
MsgBox("Seleccione el archivo a cargar", MsgBoxStyle.Exclamation, "Error")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Saludos,