哪个更好?? [英] Which is better??
本文介绍了哪个更好??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要处理Java中\ file中的数据.因此,使用XML还是dat更好呢?
I need to handle data from\to files in java. So which is better to use, XML or dat ?
推荐答案
这完全取决于您的需求.
您是否需要使用户难以处理这些数据?然后使用二进制文件或更佳的二进制文件,将其放置在数据库中.如果您想要人类可读的,结构化的数据,那么XML是您的选择.
Java有足够的能力让您同时轻松地工作.
It all depends on what you need.
Do you need to make it difficult for users to mess around with that data? Then use a binary file or better yet, place it in a database. IF you want human-readable, structured, data, XML is your choice.
Java is capable enough to let you work with either with equal ease.
这篇关于哪个更好??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文