I cannot find any mention of writing strings to a text file in Codename One. I need to create and maintain a "directory" of saved image groups so I can retrieve the name of the group and then retrieve the images by their saved name in ImageViewer. Has anyone developed an imitation of the Java FileWriter?
Codename One has a
Writerclass but not aFileWritersince the file system is a bit different from the one on the OS.You can just use
FileSystemStorageorStorageto write a text file just like you can in Java SE usingOutputStreamorWriter. E.g.: