【发布时间】:2017-01-17 09:39:18
【问题描述】:
我希望根据代码中需要执行的操作将文本文件的访问权限从 Input 更改为 Append。它在打开时设置为输入,因为第一个操作是读取数据,但是如何在不关闭文件的情况下将其更改为追加?
我的代码:
FileOpen(1, username & DateTime.Now.ToString(" hh-mm dd-MM-yyyy") & ".txt", OpenMode.Input)
'y = senArray.Count
For Each x In senArray
If LineInput(1) = senArray(x) Then
lineTemp = LineInput(1)
PrintLine(1, lineTemp & " " & j)
If LineInput(1) = "" Then
PrintLine(1, senArray(x) & " " & j)
End If
Else
End If
j += 1
Next
FileClose(1)
【问题讨论】:
标签: vb.net file ms-access file-permissions