I am working on an application that works with foreign languages and also uses colors. The original program persisted all of its data to a text file, and worked very well, but used unmanaged code, that is, API functions. When I did research on how to persisted application settings with managed code, I found that XML files are used in managed code. XML files do not work good for what I am doing though, because the do not save characters like "[", "]", and will not even allow you to save a tag with a space character in it! I suspect that it might be possible to save the data in an XML correctly if I use binary, but I am not sure on that, and I do not prefer it. I would prefer to keep the format in text form if possible though, because in that form, you can open up the file in notepad and see exactly how things are stored, and even edit it in notepad if you want. If I use text format though, I need a way to store and retreive attributes like color and utf-8 style text. So my question is: Are there any alternatives to XML that use text files under managed code and allow you to store and retrieve attributes?


LinkBack URL
About LinkBacks




Reply With Quote




Bookmarks