what is the difference between:
my code :
this code always this ok. when use :
sometimes appears an error in reading the file, Undetermined character at ...
the Json file is a big file.
B4X:
File.GetText
File.ReadString
my code :
B4X:
Dim parser As JSONParser
Dim ListaMatriz As List
ListaMatriz.Initialize
ListaMatriz.Clear
Dim pageTwitter As String
pageTwitter = File.GetText(File.DirInternal, "pageTwitter.json")
parser.Initialize(File.GetText(File.DirInternal, "pageTwitter.json"))
Log("pageTwitter:" & parser)
ListaMatriz = parser.NextArray
this code always this ok. when use :
B4X:
Dim parser As JSONParser
Dim ListaMatriz As List
ListaMatriz.Initialize
ListaMatriz.Clear
parser.Initialize(File.ReadString(File.DirInternal, "pageTwitter.json"))
Log("pageTwitter:" & parser)
ListaMatriz = parser.NextArray
sometimes appears an error in reading the file, Undetermined character at ...
the Json file is a big file.