Android Question Problem importing data from UFF file

mahyara

Member
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?

Retrieving data from UFF file:
    Dim h As List =s.LoadCSV(File.DirAssets, "FileName.uff", " ")
    Dim value As String=h.Get(200)
    Log (value)
 

Attachments

  • UFF.png
    UFF.png
    31.6 KB · Views: 147

mahyara

Member
Well I found the solutions so I want to share them here, I had to use StringFunctions and StringUtils
Retrieving data from UFF file:
    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
Top