Yes i do that in my apps and there it is ok, but i want to sende textfile on mail and then read it on the pc. If I do that the item is not in order, can that be done?
You should then go over the items in the Map and manually write them to a file:
B4X:
Dim list1 As List
list1.Initialize
For i = 0 To map1.Size - 1
list1.Add(map1.GetKeyAt(i) & "=" & map1.GetValueAt(i))
Next
File.WriteList(..., ..., list1)
This will only work if the keys do not contain the '=' character.
You should then go over the items in the Map and manually write them to a file:
B4X:
Dim list1 As List
list1.Initialize
For i = 0 To map1.Size - 1
list1.Add(map1.GetKeyAt(i) & "=" & map1.GetValueAt(i))
Next
File.WriteList(..., ..., list1)
This will only work if the keys do not contain the '=' character.
I dont get this ting to work corectly if I use writhemap /Readmap2 the text in the messageox are ok and the textfile in caos, If I use writhelist the textfile is ok and the mesagebox is ok, how can I get both off them to work
corecly Please help me. sorting the textfile is the last thing to do ¨with my APP
No It is wrong It shudd ben If I use writhelist the textfile is ok and the mesagebox is not ok and whith map file is not ok and box is ok. I have tried so many things so i dont no what to do. If I sent the textfile that looks ok in the fone, evrything is in one line when i read it in the computer. Can one one give som good adwice.