I am new to VB 2005, and am trying to update code from an older program of mine.

How would I convert this to 2005?

vb Code:
  1. Dim intFileNum      As Integer
  2.  
  3.      intFileNum = FreeFile()                         ' Assign available File Number
  4.  
  5.      strFile = Format(Date, "mm-dd-yyyy")            ' Set Base File Format
  6.  
  7.      strFile = App.Path & "\" + strFile + "-Leaders.txt"   ' Create Log File name
  8.  
  9.  
  10.      Open strFile For Output As #intFileNum          ' Open File for Output
  11.           Write #intFileNum, strSource                ' Write source code
  12.      Close #intFileNum                               ' Close File