first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Using the FreeFile Function

The following code fragment demonstrates how the FreeFile function searches for a free file number when opening a file:

Dim i As Integer i = FreeFile Open <file> For Input As #i Do Until EOF(i) <stuff> Loop Close #i

Use this technique when there is uncertainty about about the file numbers in use.

mod date: 1998-05-19T16:17:43.000Z