From: Karsten Meier Date: 2005-08-11T23:06:11+09:00 Subject: java strings read and write Hello Ruby Fans I want to prepare some data so that a java program on a mobile phone can read them most easily. Currently my java program reads it char by char in a line oriented way. This works, but is slow on some phones, and also I need to handle newlines in the data in a special way. Now I like to create a file with "native java strings", in this case strings that can be read with DataInputStream.readUTF() method. I hope that this simplifies the code and improves the speed. I don't need a complete Ruby/Java Integration, I just want to write these java strings to a file (or to stdout as a cgi-script). Are there any libraries for this? Regards Karsten Meier