Hello. im trying to creat a pocket pc application using visual basic. but i got problem access text file. system always shows that "counld not find a part of path". the code i wrote is like:
Imports System Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim oRead As System.IO.StreamReader Dim Entire As String oRead = IO.File.OpenText("C:\Documents and Settings\test.txt") Entire = oRead.ReadToEnd() Label1.Text = Entire End Sub End Class
(the red code is the one with error)
Please Help! Thx!
Edited 6 Years Ago by __avd: Added [code] tags.