File.
WriteMap (Dir As String, FileName As String, Map As Map)
Creates a new file and writes the given map. Each key value pair is written as a single line.
All values are converted to strings.
See this link for more information about the actual format:
B4A Question java.io.FileNotFoundException on File.WriteMap - Frank Cazabon (first post)    
Sep 8, 2023(File.java:449)
at anywheresoftware.b4a.objects.streams.File.WriteMap(File.java:291)
at IBC....FileNotFoundException: /storage/emulated/0/Android/data/MyApp/files/MyApp.config: open failed: ENOENT (No...
link: Where is the FULL ERROR? Where is the Full-Code used? I can not see what ConfigFilePath contains...
link: you need to change ConfigFilePath with
rp.GetSafeDirDefaultExternal("")
and you need to...
link: , ConfigFileName) = False Then
configMap.Put("SQLUrl", SQLUrl)
File.WriteMap...
Bug? file.writemap b4a and b4i do not generate same file - imbault    
Apr 30, 2015@Erel ,
in b4a, file.WriteMap, puts #Tue Apr 28 23:22:42 CEST 2015 at first line, then the map lines
in b4i just a map, key = values
The goal was porting a b4a app to b4i, maps files handling in...
link: This is not considered a bug. B4J and B4A WriteMap is based on Java properties files. There is no...
link: a problem, if your port an B4a app with Maps files embedded to a B4i app, you will have pb...
thx...
link: Use RandomAccessFile.WriteB4XObject / ReadB4XObject instead....
B4J Question File.writeMap - View - Lego Jérôme (first post)    
Nov 18, 2018No.
You only can store infos on how the pane is created but you can not write/restore Objects in this way.
ok thank you...
link: Is it possible to writeMap with a view like a TabPane and after read this map ?
No.
You only...
link: ("matiere",TabPaneMatiere)
File.WriteMap(chemin,"saveTi2",m)
End...
B4A Question Troubles with custom type and File.ReadMap, File.WriteMap - DonManfred (first post)    
Jun 17, 2018   
(1 reaction)Any idea, what I am doing wrong?
https://www.b4x.com/android/help/images/Method_636.png File. WriteMap (Dir As String, FileName As String, Map As Map)
Creates a new file and writes the given map...
link: OK, I solved it with RandomAccessFile and WriteB4XObject - ReadB4XObject instead File.WriteMap...
link: ...
File.WriteMap(sDir, sFile, map_Buttonprops)
But the map is not filled with the items of the type...
link: It seems that the result from map.Get(sKey) is a string like "" and can not be casted...
B4A Question Map Collection - The most useful collection... - Erel    
Nov 12, 2015   
(21 reactions)   
tags: Maps, MapColl property).
There are two ways to save and load maps.
File.WriteMap / ReadMap - Writes or reads the map....WriteB4XObject / ReadB4XObject - Can write or read maps with custom items....Map is a collection that maps keys to values.
It can also be named hashtable, dictionary or... the key.
Retrieving the key is a fast operation. The size of the map doesn't affect the performance... methods are Put and Get. Put adds a key / value pair to the map and Get returns the value based...
B4i Question File.WriteMap error ? - Erel (first post)    
Jun 5, 2015Where is the code?...
link: Hi,
I using File.writemap function encounter a bug wichi in ios , need help
and I sure the file...
B4A Question File.WriteMap ... - Erel (first post)    
Oct 31, 2014File.WriteMap overwrites existing files. However if there is an existing written map then you can read it with File.ReadMap, merge the two maps and write it back.
Or better, use KeyValueStore class....
link: Hi,
Does the File.WriteMap method only support the overwrite mode and not support append mode...
B4A Tutorial Compilation time and auto-increment build version - Erel    
Dec 6, 2020   
(20 reactions))
File.WriteMap(path, "", m)
End Sub
If you only want to increment the version for... As Boolean)
If FirstTime Then
Dim compiledata As Map = File.ReadMap(File.DirAssets... the file warning).
The small utility code (B4J) is:
Sub AppStart (Args() As String)
Dim m As Map...) Then
m = File.ReadMap(path, "")
Else
m.Initialize
End If
m.Put...This tutorial demonstrates how the custom build action feature can be used to add a file during...
B4A Tutorial Text files - Erel    
Nov 28, 2010   
(18 reactions)   
tags: dirDefaultE, tutorial, dir, dirAssets, B4A - Reads a file and stores each line as an item in a list.
File.WriteMap - Takes a map object which holds... common usage of File.WriteMap is to save a map of "settings" to a file.
File.ReadMap - Reads... i)
Next
File.WriteMap(File.DirRootExternal, "Map.txt", Map1)
End Sub
Sub... - There are several important locations where you can read or write files.
File.DirAssets
The assets... several methods for writing and reading to files.
You can also use TextReader and TextWriter to do...
B4J Tutorial Working with files - Erel    
Dec 10, 2015   
(6 reactions) as multiple items.
File.ReadList - Reads a file and stores each line as an item in a list.
File.WriteMap... it easy to edit it manually.
One common usage of File.WriteMap is to save a map of "settings" to... write objects or collections other than simple lists or maps then you can use RandomAccessFile...The File methods in B4J are identical to B4A File methods.
Text file methods
File.WriteString - Writes the given text to a new file.
File.ReadString - Reads a file and returns it content...
Page: 1  
2  
3  
4  
5  
6  
7