Android Question Text File (.TXT) create, read write and append

Tayfur

Well-Known Member
Licensed User
Longtime User
basiclly

B4X:
'****** for Write txt  or etc file for string******************
Dim mytext As String
mytext=" Erel Rulezz Erel Rulezzzzz Erel Rulezzzzzzz ...... "
File.WriteString(File.DirRootExternal,"sample.txt",mytext)
'****** for Read txt  or etc file for string******************
Dim myreadtext As String
myreadtext= File.ReadString(File.DirRootExternal,"sample.txt")
Log(myreadtext)
 
Upvote 0
Top