If you publish or PM the source to me, I might be able to get rid of that bug.
And I'd implement a check whether the "cfg.txt" is present or not.
Have a basic function
And I'd implement a check whether the "cfg.txt" is present or not.
Have a basic function

Function FileExist(FileName$) As Boolean
FileExist = True
On Error GoTo FESkip
Open FileName$ For Input As #235
Close #235
FileExist = False
FESkip:
FileExist = Not (FileExist)
On Error GoTo 0
End Function