How can you load the text from txt file in assets?, I tried something like this thread:
But it doesn't work, what am I doing wrong?
[BANAno] [SOLVED] Currently GetFileAsDataURL has a return type of BANanoPromise, can it return BANanoFetch?
Hi there Interesting.... The GetFileAsDataURL and other GetFile methods return a BANanoPromise and it has a BANanoFetchOptions variable passed to it. Am I right to assume that its possible for it to have a return type of BANanoFetch? This will enable one to execute something like Dim bf...
www.b4x.com
B4X:
Dim blob As BANanoObject = BANano.Await(BANano.GetFileAsText("./assets/myfile.txt", Null, "UTF-8"))
Dim MyText As String = blob.ToString
BANano.Console.Log(MyText)
'...'
But it doesn't work, what am I doing wrong?