iOS Question webview local files

Peter Yeung

Member
Licensed User
Longtime User
Hello,

I used to modify the local file and load it in Webview in B4A by below codes:

Dim text As String=File.GetText(File.DirAssets,"index.html")
text = text.Replace("EMPTY","PETER")
File.WriteString(File.DirInternal,"index1.html",text)
WebView1.LoadUrl("file://" & File.Combine(File.DirInternal, "index1.html"))

Are there any way to do it in B4i?

Many thanks.
 
Top