Whats the difference between open a file this way:
VB Code:
Dim fileChk, fileNum As Integer fileChk = GetAttr(strPath) If Not fileChk <> 0 Then fileOpen = "" Else fileNum = FreeFile Open strPath For Input As #fileNum Line Input #fileNum, fileOpen Close #fileNum
...and opening it this way:
VB Code:
Dim fileChk As Integer fileChk = GetAttr(strPath) If Not fileChk <> 0 Then fileOpen = "" Else Open strPath For Input As #1 Line Input #1, fileOpen Close #1
?
I've seen people do it both ways, but I don't know the difference or which one is better/more practical.




Reply With Quote