将结构保存到文件? [英] Saving a Structure to a file?

查看:67
本文介绍了将结构保存到文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我该怎么办?书中没有任何内容是有用的。

我需要保存具有不同数据类型的结构。


How do I do it? Nothing in the books is helpful.
I need to save a structure with different data types.

推荐答案

imme:在Google上查看VB.NET&序列化。这是一个属性,你

可以用它来标记你的结构或你的类。从那里,你可以实现你想要的序列化,有很多例子可以在那里看待它们,但是就像一个类一样对待它。你需要确定你想要保存的格式是什么格式(二进制,SOAP,XML,文本),这将决定你如何进行
继续。


HTH,


Bill

" imme929" < IM ***** @ nosuchplace.net>在消息中写道

news:Cx ************** @ newssvr15.news.prodigy.com ..。
imme: Look on Google for VB.NET & Serializable. It''s an attribute and you
can mark up your Structures or your classes with it. From there, you can
implement the serialization however you want, there are tons of examples out
there but treat it just like a class. You''ll need to decide what format you
want it saved in (Binary, SOAP, XML, Text) and that will dictate how you
proceed.

HTH,

Bill
"imme929" <im*****@nosuchplace.net> wrote in message
news:Cx**************@newssvr15.news.prodigy.com.. .

我该怎么办?书中没有任何内容是有帮助的。
我需要保存具有不同数据类型的结构。

How do I do it? Nothing in the books is helpful.
I need to save a structure with different data types.



" imme929" < IM ***** @ nosuchplace.net> schrieb
"imme929" <im*****@nosuchplace.net> schrieb

我该怎么办?书中的任何内容都没有帮助。
我需要保存具有不同数据类型的结构。

How do I do it? Nothing in the books is helpful.
I need to save a structure with different data types.


http://msdn.microsoft.com/library/en...Processing.asp

-

Armin


如何报价以及原因:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


http://msdn.microsoft.com/library/en...Processing.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


* imme929< im ***** @ nosuchplace.net> scripsit:
* imme929 <im*****@nosuchplace.net> scripsit:
我该怎么办?书中没有任何内容是有帮助的。
我需要保存具有不同数据类型的结构。
How do I do it? Nothing in the books is helpful.
I need to save a structure with different data types.




''FilePut'' - > F1。


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps .org />



''FilePut'' -> F1.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


这篇关于将结构保存到文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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