Android Question Save to file best way for special data

DonManfred

Expert
Licensed User
Longtime User
file.writetext is not works
it works!

What let you think it will not work? Maybe your requirements does not fit the possibilities of writetext

if your buffer is for example a bytearray then you could do it like this

B4X:
    Dim out As OutputStream
    out = File.OpenOutput(File.DirDefaultExternal,"abc.dat",False)
    out.WriteBytes(buffer,0,buffer.length)
    out.Flush
    out.Close

But reading the documentation could help to find it yourself!
 
Upvote 0

Tayfur

Well-Known Member
Licensed User
Longtime User
thanks for helps
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…