存储不同类型数据的最佳文件类型是什么? [英] What is the best type of file to store different type of data?

查看:139
本文介绍了存储不同类型数据的最佳文件类型是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Visual Studio 2012编写了几个不同的项目。每个项目都需要至少有一个支持数据文件。目前(我知道这是错的)我使用RANDOM访问文件来存储不同类型的数据(布尔,字符串,整数),因为我可以非常快速地访问它们。现在,它似乎工作,我的代码运行应该。另一件事,我用OLDFileOpen命令创建这些文件(我知道这也不是最新的!)但我不明白如何使用更好的方法。有人可以帮我解决这些问题吗?



我尝试了什么:



我目前没有代码可以显示

I have written a couple of different projects with Visual Studio 2012. Each of the projects need to have at least 1 supporting data file. Currently (and I know this is wrong) I am using RANDOM access files to store the different types of data (boolean,string,integer) because I can access them very quickly. For now, it seems to work and my code runs like it should. Another thing, I am creating these files with the OLD "FileOpen" command (I know this is not current too!) but I don't understand how to use the better way. Can someone help me with these issues?

What I have tried:

I have no code to show at this time

推荐答案

使用数据库 - 有几个 - 他们需要付出艰苦的努力(以及允许如果需要,可以在以后访问多用户)

它们还提供了许多非常有用的功能,例如多个表和引用,可以减少或删除数据重复。



Google for VB.NET数据库,你会找到Access,Sql Server,Sqlite等的类。
Use a database - there are several - and they take the hard work out of it (as well as allowing multiuser access later if you need it)
They also provide a load of very useful features such as multiple tables and references which can reduce or remove data duplication as well.

Google for VB.NET database and you'll find classes for Access, Sql Server, Sqlite, and others.


这篇关于存储不同类型数据的最佳文件类型是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆