나는 그래서 탭으로 구분 된 텍스트 파일이 있습니다복사
name \t loan period \t loan amount
John \t 5 years \t 6000
Sarah \t 5 years \t 6000
Jane \t 1 month \t 100
내가 "="오년 "로 선"대출 기간을 "복사 찾고 있어요를 대출 기간 "="1 개월 "로 비교를 표시합니다. 새 줄은 결과 파일의 끝에 추가됩니다.
name \t loan period \t loan amount
John \t 5 years \t 6000
Sarah \t 5 years \t 6000
Jane \t 1 month \t 100
John \t 1 month \t 100
Sarah \t 1 month \t 100
나는 비주얼 베이직 닷넷과 함께 이것에 대해 놀겠다는 거, 지금까지 봤는데, 이것은 내가
을 마련했습니다 것입니다 :내가 달성하기 위해 희망의 궁극적 인 최종 결과는 이것이다
Dim strData As String
Dim i As Short
Dim strLine() As String
lngSize = 0
FileOpen(1, txtloanlistinput.Text, OpenMode.Input)
While Not EOF(1)
i = i + 1
strData = LineInput(1)
End While
FileClose(1)
ReDim loanlist(i)
strData = ""
lngSize = i
i = 0
FileOpen(2, txtloanlistinput.Text, OpenMode.Input)
While Not EOF(2)
i = i + 1
strData = LineInput(2)
If i = 1 Then
strData = LineInput(2)
End If
strLine = Split(strData, Chr(9))
loanlist(i).strName = strLine(0)
loanlist(i).strLoanPeriod = strLine(1)
loanlist(i).curLoanAmount = strLine(2)
End While
FileClose(1)
FileClose(2)
진행 방법에 대해 공란을 표시하고 도움을 요청할 것이라고 생각했습니다.
감사합니다. 늦어서 죄송합니다. –
도움이되기를 바랍니다. – vaquito