"
If ReadFields encounters blank lines, they are skipped and the next
non-blank line is returned.
"
MSDN has spoken.
so don't use ReadFields, that's it. I don't really know well the
TextFieldParser class, but I'm sure you can read the file line per
line to check blank lines, and then the text you get you can put it in
a memory stream, then that stream goes to the parser, I know It's not
very beutiful, but it's fast to develop.
If you got more time (I think not, since you said "asap") you may
emulate the functionality of ReadFileds, with your own function that
takes the string you read from a line in the file, allowing you to do
the check before calling it.
And the next time make sure to close the "{" with "}", I'll not go to
debug something as ugly as the code you
has post.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment
You may subscribe to group Feeds using a RSS Feed Reader to stay upto date
using following url
<a href="http://feeds.feedburner.com/DotNetDevelopment">
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---