Ok, that might not be my problem then because when I run the script where I close the inner file everytime on the loop, I get a file handle error. If I was to use the freefilehandle() function, how would I be sure that I got the file handle for the file handle in question? Am I even trying to open/close the file the correct way?

Code:
$OpenReorgFile  = Open(3,$ReorgFile,2)
$PhoneDirFile = @ScriptDir + '\Balad_Telephone_Book.csv'
$OpenPDFile = Open(4,$PhoneDirFile,2)
$OutputFile = @ScriptDir + '\Morale_Call_Output.csv'
$OpenOutputFile = Open(5,$OutputFile,5)

If $OpenReorgFile = 0 AND $OpenOutputFile = 0
$rLine = ReadLine(3)
Do
$rArrLine = Split($rLine+',,,,',',')
? '1: ' + $rArrLine[4]
If $OpenPDFile = 0
$pdLine = ReadLine(4)
If @ERROR <> 0
? 'Error: ' + @ERROR + ' -- ' + @SERROR
Endif
sleep 5
While @ERROR = 0
$pdArrLine = Split($pdLine+',,,,',',')
? '2: ' + $pdArrLine[4]
$pdLine = ReadLine(4)
Loop
$ = Close(4)
Endif
$rLine = ReadLine(3)
Until @ERROR <> 0
Else
? 'Error: ' + @ERROR + ' -- ' + @SERROR
Endif

$ = Close(3)
$ = Close(5)