c# - Which is fast to read, .xml, .ini or .txt? -
my application has read info stored in file , values variables or arrays work on them.
my question is, file format fast , easy retrieval of info file.
i thinking utilize .xml, .ini , or simple .txt file. read .txt file have write lot of code many if or else conditions.
i dont know how utilize .ini , .xml. if improve , fast i'll larn them first, , i'll utilize them. kindly guide me.
i assume indicating here raw performance not priority on robustness of system.
for simple info value paired name, ini simplest solution. more complex structured info lead toward xml. according previously asked question if working in c# (and hence it's assumed in .net) xml preferred has been built .net libraries. xml more flexible , can alter needs of program, recommend xml on ini file standard. take more work larn xml library, pay off , standardized system.
text fast, sacrificing either vast sum of robust parsing behavior sake of speed or spending far more man hours developing , maintaining high speed specialized parser.
for references on reading in xml files: (natively supported in .net libraries)
msdn xmltextreader article msdn xmlreader article writing info xml xmlserializerfor references on reading in ini files: (not natively supported in .net libraries)
related question c# .net xml io ini
No comments:
Post a Comment