Tayfur Well-Known Member Licensed User Longtime User Aug 19, 2019 #1 Hello; I created settings with map type. and its recorded txt file. But i need to use same file with VBasic. How con i read this file in VBasic. (without convert/use on B4J) Beacuse, file is not readable. Attachments PERSONEL - Kopya.txt PERSONEL - Kopya.txt 895 bytes · Views: 373
Hello; I created settings with map type. and its recorded txt file. But i need to use same file with VBasic. How con i read this file in VBasic. (without convert/use on B4J) Beacuse, file is not readable.
MarkusR Well-Known Member Licensed User Longtime User Aug 19, 2019 #2 looks binary. map type? this create text, at least in this simple example. Code: Copy Dim m As Map m.Initialize m.Put("Hello",123) File.WriteMap(File.DirApp,"Data.map", m) Dim g As JSONGenerator g.Initialize(m) File.WriteString(File.DirApp,"data.txt",g.ToPrettyString(1)) Upvote 0
looks binary. map type? this create text, at least in this simple example. Code: Copy Dim m As Map m.Initialize m.Put("Hello",123) File.WriteMap(File.DirApp,"Data.map", m) Dim g As JSONGenerator g.Initialize(m) File.WriteString(File.DirApp,"data.txt",g.ToPrettyString(1))
EnriqueGonzalez Expert Licensed User Longtime User Aug 19, 2019 #3 Depending in how you stored it you can use the .net implementation https://www.b4x.com/android/forum/threads/b4x-net-framework-implementation-of-b4xserializator.73080/ Upvote 0
Depending in how you stored it you can use the .net implementation https://www.b4x.com/android/forum/threads/b4x-net-framework-implementation-of-b4xserializator.73080/
Tayfur Well-Known Member Licensed User Longtime User Aug 19, 2019 #4 MarkusR said: looks binary. map type? this create text, at least in this simple example. Code: Copy Dim m As Map m.Initialize m.Put("Hello",123) File.WriteMap(File.DirApp,"Data.map", m) Dim g As JSONGenerator g.Initialize(m) File.WriteString(File.DirApp,"data.txt",g.ToPrettyString(1)) Click to expand... thank you for musch for reply; But; I dont change B4J code. I can solve with B4J. So, I want read (recoerded map file on B4J) with .Net (I dont know record format B4J) Upvote 0
MarkusR said: looks binary. map type? this create text, at least in this simple example. Code: Copy Dim m As Map m.Initialize m.Put("Hello",123) File.WriteMap(File.DirApp,"Data.map", m) Dim g As JSONGenerator g.Initialize(m) File.WriteString(File.DirApp,"data.txt",g.ToPrettyString(1)) Click to expand... thank you for musch for reply; But; I dont change B4J code. I can solve with B4J. So, I want read (recoerded map file on B4J) with .Net (I dont know record format B4J)
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2019 #5 Use JSON for this. I'm sure that you will find a json parser for VB or VB .Net. Upvote 0
Tayfur Well-Known Member Licensed User Longtime User Aug 19, 2019 #6 Enrique Gonzalez R said: Depending in how you stored it you can use the .net implementation https://www.b4x.com/android/forum/threads/b4x-net-framework-implementation-of-b4xserializator.73080/ Click to expand... Tahnks for helps. I will try it. Upvote 0
Enrique Gonzalez R said: Depending in how you stored it you can use the .net implementation https://www.b4x.com/android/forum/threads/b4x-net-framework-implementation-of-b4xserializator.73080/ Click to expand... Tahnks for helps. I will try it.