Bonjour TextOutputStream.Create me pose problème sur un Mac/Monterey
A la deuxième exécution, j’ai une erreur 24
Merci pour votre éclairage
Var d As DateTime
Var tx As String
Var s As String = System.Random.InRange(0, 100).ToString
Var f As FolderItem
d = DateTime.Now
f = SpecialFolder.Desktop.Child ( "ee" )
If f.Exists = False Then
f.CreateFolder
End If
d = DateTime.Now
f = SpecialFolder.Desktop.Child ( "ee" ).child ( s + ".txt" )
If f.Exists Then
f.Remove
End If
If f <> Nil Then
Try
Var t As TextOutputStream
t = TextOutputStream.Create(f)
t.WriteLine( "zz" + d.SQLDateTime )
t.Close
Catch e As IOException
tx = e.Message + " / " + Str ( e.ErrorNumber )
tx = tx
End Try
End If
poopipoipo