Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2005

Tip: Looking for answers? Try searching our database.

Reading comma delimited values with CFile?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ungvichian - 17 Nov 2005 09:30 GMT
So, right now I'm writing a program in VC++.Net with MFC, and one of
the steps involves reading numeric values from a comma delimited file
(like 4.56, 2.44, 3.453 etc.). The only methods I've been able to find
to read the values all involve StreamReader, and I can't figure out how
to use this. Since I'm using MFC, I'm using CFile instead.

Also, none of the methods seem to come with a method for error
catching. I want my program to be able to reject files that are NOT
comma delimited numbers with an error message.

Okay, how to code?
MuZZy - 18 Nov 2005 03:37 GMT
> So, right now I'm writing a program in VC++.Net with MFC, and one of
> the steps involves reading numeric values from a comma delimited file
[quoted text clipped - 7 lines]
>
> Okay, how to code?

Why don't you read the file into a string and then split by coma?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.