I forgot how to do this, but I want to see if a folder already is alread there, and if not, I want to create so can someone please fix the code for me:

Code:
      if (the folder is already there) then
      Open "C:\dimas password\01.dat" For Output As #1
      Write #1, txtfn.Text, txtln.Text
      Close #1

      ELSE: MkDir "C:\dimas password\"
      Open "C:\dimas password\01.dat" For Output As #1
      Write #1, txtfn.Text, txtln.Text
      Close #1


      End If