Come pensavo ... il file è in formato testo UNIX (proviene da un sistema Linux?) con il solo LF come terminatore ...
Quindi devi usare una funzione come questa per leggere una linea
codice:
Private Function RLine(f As Integer)
Dim ch As String
Do While Not EOF(f)
ch = Input(1, f)
If ch = vbLf Then Exit Do
RLine = RLine & ch
Loop
End Function
che userai così
codice:
Dim testo As String
Dim ffile As Integer
ffile = FreeFile()
nomefile = path_Ps_tema
Open nomefile For Input As #ffile
Do While Not EOF(ffile)
testo = RLine(ffile)
Debug.Print testo
Loop
Close #ffile
End Sub
Comunque esistono anche dei tool che trasformano il file in formato DOS/Windows in modo da non dovere usare codice particolare ...