[英]write to a file (and read from it later) an array of structure (vb.net)
I have an array of structure like this: 我有一个这样的结构数组:
Structure Planner
Dim Type As String
Dim Circuit As String
Dim Socket As String
Dim StepCMDText As String
End Structure
how do i write it into a file? 我如何将其写入文件? (also read it later ...)
(稍后再读......)
thanks 谢谢
You could use xml serialization that is available in VB.NET. 您可以使用VB.NET中提供的xml序列化。 See http://support.microsoft.com/kb/316730 for details.
有关详细信息,请参见http://support.microsoft.com/kb/316730 。
您可以将其编写为csv文件,但只需迭代列表,然后用逗号分隔每个值,否则您可以将其序列化并将其写入文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.