不好意思,我忘了!还有一点,怎么样加载上面的data.txt文件,然后进行读操作呢??
下面是一段vb代码,可以帮忙改为C#么???
多谢各位了!!!
InputFileNum = FreeFile
i = 0
Open "C:\Enterprise\EdiLogfile" For Input As #InputFileNum
Do While Not EOF(InputFileNum)
Line Input #InputFileNum, strInput
If Trim(strInput) <> "" Then
i = i + 1
strEntry = ""
arrData = Split(strInput, ",")
strFilename = arrData(0)
arrData1 = Split(strFilename, "\")
strFile_detail = Left(arrData1(4), 3)
strCreateDate = "20" & Left(Right(arrData(0), 14), 6)
strCreateTime = Left(Right(arrData(0), 8), 6)
strISANo = arrData(5)
strSuccFlag = arrData(7)
strEDI = Left(arrData(5), 3)
If strEDI = "856" Then
strEDI = Left(arrData(5), 3) & "PACK"
End If
[此贴子已经被作者于2005-4-26 18:19:36编辑过]