阅读背景:

格式化txt文件并将其显示到gridview

来源:互联网 

this is my first post, and I am new to C# so please be gentle :P. I am writing application that is reading some txt files and then displaying them in gridview (I am later doing some more things with it, but it is not important right now). Almost all of my files have some established system of characters (there are always three columns that are separated with coma) and here I have no problem with reading them putting in list and then bind into gridview. But I also have some files that don't have same system of characters, and I have problem with dealing with them. Can You help me to somehow format them to this original system of characters (I mean this one with commas). Bellow is my function for loading everything into list and then into gridview. I also posted example of file with good system of characters, and this one which is not formated.this is my first post, and I am new to C# so pl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: