hi
its many day's im bloked to read a line from a file .txt dawnoalded from web-server white many fonction file.listread...textreader
i dont know what's de probleme , the file is dawnoalded whit success i open it with " gestionnaire d'aplication" is ok
that's my code :
Sub JobDone (job As HttpJob)
If job.Success = True Then
Select job.JobName
Case "job1"
Dim outs As OutputStream
outs = File.OpenOutput(File.DirRootExternal&"/fichiermiseajour","prod.csv",False)
File.Copy2(job.GetInputStream,outs)
ProgressDialogHide
Msgbox("le telechargemet de " & job.Tag & " est terminé","info")
outs.Close
p.ReleaseKeepAlive
csvload
Case "job2"
Dim out2 As OutputStream
Dim list As List
out2 = File.OpenOutput(File.DirRootExternal&"/fichiermiseajour","version.txt",False)
File.Copy2(job.GetInputStream,out2)
list = File.ReadList(File.DirRootExternal&"/fichiermiseajour",job.Tag)
For i =0 To list.Size-1
Log(list.Get(i))
Next
Msgbox("le telechargemet de " & job.Tag & " est terminé","info")
out2.Close
' If versionactual < version.SubString(5) Then
'
' Msgbox("nouvelle mise ajour est disponible","info")
'
'
'
' End If
'
End Select
Else
Msgbox("erreur:" & job.ErrorMessage ,"info")
End If
job.Release
End Sub
sorry for my bed english
cordialement