Sub lecture() 'binaire
fichier = ThisWorkbook.Path & "\UTF8sansBOM_EkkehardHorner.txt"
Dim lachaine$
x = FreeFile: Open fichier For Binary Access Read As #x: lachaine = String(LOF(x), " "): Get #x, , lachaine: Close #x
MsgBox " a la relecture apres comversion ça donne ça" & vbCrLf & lachaine
End Sub
Sub lecture3() ' recupe le texte complet avec input simple
Dim x As Integer: x = FreeFile
Dim lines As String, i As Long
fichier = ThisWorkbook.Path & "\UTF8sansBOM_EkkehardHorner.txt"
Open fichier For Input As #x
lines = Input$(LOF(x), #x)
Close #x
MsgBox lines
End Sub