English 中文(简体)
文本档案制图
原标题:Text File Mapping

I have a text files that are coming always in the same text format (I do not have the xsd of the text file).

我想将数据从中绘制成几类。

这样做有某种标准方法,但开始撰写插图或一些复杂的区域评价。

我真的不想用文字 par子来形容我们是数人从事这项工作,或许需要我们每个时间了解对方正在做的事情。

rel=“nofollow”>Example

Thanks.

最佳回答
问题回答

解决办法:

  1. Change the format of that file to a standard format like tab delimited or comma separated csv file.
  2. Then use a many libraries that out there to read that files or import it in a database and use an ORM like Entity Framework to read them

假设你不能将即将采用的文件格式改成更便于机器读,那么你很可能需要写自己的习俗名。 最好的方法是,利用每个领域的适当数据格式,创建各类课程,代表并储存所有各类数据。

Try to compartmentalize the code. For example, take these lines here:

272 298 9.663 18.665 -90.000 48 0 13 2 10 5 20009 1 2 1 257 "C4207" 0 0 1000 0 0

这可能是一个单一类别或结构。 其建筑商可接受上述插图作为参数,每个数值可与当地不同成员相同。 同一类别可以采用“拯救”或“稳定”方法,必要时将所有价值重新转化为扼杀。

Then the parent class would simply contain an array of the above structure, based on how many entries are in the file.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签