14 juillet 2007 La Rochelle  

Cliquez sur votre bouton "Actualiser" si l'image n'apparaît pas <% Dim objFSO, objCountFile, strCountFileName, iCount, I strCountFileName = Server.MapPath("feuartificelr.txt") Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objCountFile = objFSO.OpenTextFile(strCountFileName, 1, True) If Not objCountFile.AtEndOfStream Then iCount = CLng(objCountFile.ReadAll) Else iCount = 0 End If ' Ferme le ficher objCountFile.Close Set objCountFile = Nothing ' ajoute 1 iCount = iCount + 1 Set objCountFile = objFSO.CreateTextFile(strCountFileName, True) ' Ecris le nouveau chiffre objCountFile.Write iCount ' ferme le fichier objCountFile.Close Set objCountFile = Nothing Set objFSO = Nothing %> <%Response.Write iCount %>