1
제목에서 텍스트 파일에서 특정 단어를 검색 한 다음 해당 단어의 텍스트를 읽기 시작합니다.텍스트 파일에서 단어를 검색하고 거기에서 계속 읽으십시오. vb.net
코드 조각은 내가 파일을 읽고 문자열 ReadAll 메쏘드에 저장 한 그래서 지금 다음
Dim path As String = "c:\temp\test.txt"
Dim readall As String
Dim i As Integer
If File.Exists(path) Then
File.Delete(path)
End If
Dim sw As StreamWriter = New StreamWriter(path)
sw.WriteLine("Hello")
sw.WriteLine("i am here")
sw.WriteLine("to test")
sw.WriteLine("the class")
sw.Close()
Dim sr As StreamReader = New StreamReader(path)
readall = sr.ReadToEnd
sr.Close()
입니다. 어떻게 예를 들어 outpout 텍스트 파일이
클래스
내가 자신을 명확
당신은 유혹합니다. 고마워. – Pantheo