M mahyara Member May 14, 2020 #1 Hi I have a UFF file from which I need to retrieve data, I open the file on Windows notepad everything seems right but my problem is that in B4A when I use csv from StringUtils it returns values like: [Ljava.lang.String;@a065e148, and my second problem is that as attached my file contains number in this format: -3.43992E-08 how can I read their values in B4A? Code: Copy Dim h As List =s.LoadCSV(File.DirAssets, "FileName.uff", " ") Dim value As String=h.Get(200) Log (value) Attachments UFF.png 31.6 KB · Views: 567
Hi I have a UFF file from which I need to retrieve data, I open the file on Windows notepad everything seems right but my problem is that in B4A when I use csv from StringUtils it returns values like: [Ljava.lang.String;@a065e148, and my second problem is that as attached my file contains number in this format: -3.43992E-08 how can I read their values in B4A? Code: Copy Dim h As List =s.LoadCSV(File.DirAssets, "FileName.uff", " ") Dim value As String=h.Get(200) Log (value)
M mahyara Member May 14, 2020 #2 Well I found the solutions so I want to share them here, I had to use StringFunctions and StringUtils Code: Copy Dim List1 As List=File.ReadList(File.DirInternal , filename.uff") Dim datas As String= List1.Get(50) Dim sf As StringFunctions sf.Initialize Dim v1 As List = sf.Split(datas," ") Log(v1.Get(1)) Dim dm As Double=v1.Get(3) Upvote 0
Well I found the solutions so I want to share them here, I had to use StringFunctions and StringUtils Code: Copy Dim List1 As List=File.ReadList(File.DirInternal , filename.uff") Dim datas As String= List1.Get(50) Dim sf As StringFunctions sf.Initialize Dim v1 As List = sf.Split(datas," ") Log(v1.Get(1)) Dim dm As Double=v1.Get(3)