No your db.db file isn't corrupted, and when you read the data you aren't trimming it so that is why you see those boxes. In your Data class' readRecord method you have changed the deprecated method and create a new String. If you look at the String class you might find a method there that you can use to trim the boxes out. Mark