471,605 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Text file access in .NET 2.0

One of Microsoft's pages says it's easier to read and write text files in
..NET 2.0 than 1.1. It doesn't say what exactly was done (to System.IO or
what class?). Can someone tell me?
Feb 3 '06 #1
4 2915
Dnia 03-02-2006 o 04:39:10 Michael A. Covington
<lo**@ai.uga.edu.for.address> napisał:
One of Microsoft's pages says it's easier to read and write text files in
.NET 2.0 than 1.1. It doesn't say what exactly was done (to System.IO or
what class?). Can someone tell me?

[PD] Look at File class - it has some new static methods that allow you to
quickly read and write text files (ReadAllLines, WriteAllText etc.)

--
Piotr Dobrowolski
Piotr.Dobrowolski@_usun_gmail.com
Feb 3 '06 #2
I would assume they are referring to:
System.Text.Parsing.TextFieldParser
This class is used for parsing CSV, Delimited and fixed length text files.

Brian Patterson
http://dotnet.redeyepos.com
http://brian.redeyepos.com

"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
One of Microsoft's pages says it's easier to read and write text files in
.NET 2.0 than 1.1. It doesn't say what exactly was done (to System.IO or
what class?). Can someone tell me?

Feb 3 '06 #3
I don't see it in that namespace. As far as I can tell, you're talking
about Microsoft.VisualBasic.FileIO.TextFieldParser, which apparently
works, but I wouldn't recommend it because they implemented it using
regex's, and it is sloooow. You can speed test it vs mine,
http://www.csvreader.com , not to mention that it only provides the
most basic of csv functionality.

Feb 3 '06 #4
Thanks to all who replied!
Feb 4 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Johnny Meredith | last post: by
2 posts views Thread by Michael Thomas | last post: by
1 post views Thread by Andrew Chanter | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.