如何从C#中的记事本文件读取 [英] How to read from Notepad file in c#

查看:145
本文介绍了如何从C#中的记事本文件读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

传送日期:12/12/12
杂志#项目项目美元
AY 2 82.89
CK 8 210.48
SL 11 343.78
SU 5 104.00
TH 4 94.99
HA 1 21.40
EW 6 246.82
FO 2 179.00
IN 6 202.28
PE 102 5281.75
SI 7 332.20
SM 4 111.70
TD 10 375.49
EE 2 58.00
帐户总计:2000027331828
项目:170金额:$ 7644.78
****************************************************** ***
杂志#项目项目美元
LV 7 162.00
帐户总计:2000027331844
项目:7金额:$ 162.00
****************************************************** ***


这是记事本文件.我需要阅读杂志,#个项目,文件中的项目美元和项目数应该相同,金额也应相同.
同样,文件夹中也有一些文件.

Hi All

Transmission Date : 06/12/12
Magazine # Items Item Dollars
AY 2 82.89
CK 8 210.48
SL 11 343.78
SU 5 104.00
TH 4 94.99
HA 1 21.40
EW 6 246.82
FO 2 179.00
IN 6 202.28
PE 102 5281.75
SI 7 332.20
SM 4 111.70
TD 10 375.49
EE 2 58.00
The totals for account : 2000027331828
Items: 170 Amount: $ 7644.78
*****************************************************
Magazine # Items Item Dollars
LV 7 162.00
The totals for account : 2000027331844
Items: 7 Amount: $ 162.00
*****************************************************


this is the notepad file. I need to read the Magazine,# Items,Item Dollars from the file and items count should be same and the amount count too.
Likewise there are some files in the folder.

This has to be populated to gridview.


谁能帮助我有效地做到这一点.





问候
Froxy


Can anyone help me to do this efficiently.





Regards
Froxy

推荐答案

7644.78
****************************************************** ***
杂志#项目项目美元
LV 7 162.00
帐户总计:2000027331844
物品:7金额:
7644.78
*****************************************************
Magazine # Items Item Dollars
LV 7 162.00
The totals for account : 2000027331844
Items: 7 Amount:


162.00
****************************************************** ***


这是记事本文件.我需要阅读杂志,#个项目,文件中的项目美元和项目数应该相同,金额也应相同.
同样,文件夹中也有一些文件.
162.00
*****************************************************


this is the notepad file. I need to read the Magazine,# Items,Item Dollars from the file and items count should be same and the amount count too.
Likewise there are some files in the folder.
This has to be populated to gridview.


谁能帮助我有效地做到这一点.





问候
Froxy


Can anyone help me to do this efficiently.





Regards
Froxy


这是否可以帮助您激发灵感:
C#CSV读写器 [
May this help you inspire:
C# CSV Reader and Writer[^]


这篇关于如何从C#中的记事本文件读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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