Android Question File not found error

a2stepper

Member
Licensed User
Longtime User
on local or http service. have program that has not yet created this file (name.xml or txt) file.
had onerr with vb6. any ideas?
thanks.
paul
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

eps

Expert
Licensed User
Longtime User
File.Exist?

B4X:
If File.Exist(File.DirInternal, "yourfile") = False Then
   'do stuff here
EndIf

As Manfred said, a bit more info or a structured question would help.
 
Upvote 0

a2stepper

Member
Licensed User
Longtime User
thanks for the help.

two way i get this error:
speed = File.ReadString(File.DirRootExternal, "speed.txt")
and
when i try to download a xml file or jpg file off my server using http service
and on both that file does not exist the probram crashes and stops.

i see above using
If File.Exist
should work with both type file reading?
thanks aging for this help.
paul
 
Upvote 0
Top