Oppure

Loading
Questo topic e' stato chiuso dal moderatore.
22/12/08 19:05
omauri
Ciao a tutti, non riesco ad aprire file in vb.net, perchè continua a darmi "file inesistente", più precisamente: Eccezione first-chance di tipo 'System.IO.FileNotFoundException' in mscorlib.dll

vi posto anche il codice:

Imports System
Imports System.IO

Private Sub bttLeggiDaFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bttLeggiDaFile.Click

Dim r As New IO.StreamReader("d:\login.txt";)

While Not r.EndOfStream
MsgBox(r.ReadLine, MsgBoxStyle.Information)
End While

r.Close()

End Sub

Grazie a chiunque riesca ad aiutarmi!!!
aaa
23/12/08 8:17
Il Totem
Il computer non sbaglia. Controlla che il drive sia quello giusto e, nell'eventualità che sia removibile, che sia connesso correttamente.
aaa
23/12/08 8:53
omauri
ho trovato l'errore, il file aveva un .txt in più nel nome..un errore stupido che mi ha fatto perdere la testa x ben 2 ore!! grazie lo stesso x l'aiuto!!
aaa