Hi,
I am saving data from a serial port to a file using OFileStream. I am having trouble closing a file and I think it's because data is still being sent to the file when I'm trying to close it. All I have found online is the following code to close the file. Could anyone let me know if this is the right direction?
If Not oFileStream Is Nothing Then
oFileStream.Close()
End If
I am saving data from a serial port to a file using OFileStream. I am having trouble closing a file and I think it's because data is still being sent to the file when I'm trying to close it. All I have found online is the following code to close the file. Could anyone let me know if this is the right direction?
If Not oFileStream Is Nothing Then
oFileStream.Close()
End If