Android Question File.ReadMap problem

marcick

Well-Known Member
Licensed User
Longtime User
I'm using this code to read a textfile containg lines like this

B4X:
First Par=this is the first par

In B4i no problems, but in B4A I obtain "First" as key and "Par=this is the first par" as value

I can find workarounds by myself modifying the text file (removing spaces at beginning like "FirstPar=" or "First_Par=") but I would avoid it if possible..

The second difference is that in B4i I can read the file (UTF-8 encoded) and show correctly the accented letters, whil ein B4A I had to convert the file with ANSI encoding.
 

marcick

Well-Known Member
Licensed User
Longtime User
I need spaces in the keys because they becomes titles in MsgBox.
So do you mean like this ?

B4X:
First\u0020Par=this is the first par

and it will works in B4i also ?
 
Upvote 0
Top