I have a sub that saves all the information I have in a file. Now I would like my sub to do just like almost all the "save" function do which is to check if the name already exist and see if the person want to replace it.... How do I do this??
Here's a part of the code I already have:
VB Code:
  1. Dim intFileNo As Integer
  2.    
  3.     With dlg
  4.         .Filter = "Protoypes (.c .cpp)|*.c;*.cpp|"
  5.         .FilterIndex = 1
  6.         .DefaultExt = "c"
  7.         .FileName = nomFich
  8.         .ShowSave
  9.     End With
  10.  
  11. intFileNo = FreeFile
  12.  
  13. Open dlg.FileName For Binary As intFileNo
  14.         Put intFileNo, , str
  15.     Close intFileNo

Thanx in advance