Re: Book database format problem?


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by William D McQuain on March 20, 2001 at 14:49:10:

In Reply to: Book database format problem? posted by J Glidewell on March 19, 2001 at 14:35:49:

: In the sample data of the book database, the Author ID and Units Sold fields are seperated by a tab and a space. This trips an assert on my filemanager (class that reads in data) because it expects an integer and instead gets a space.

Hm... since you're reading an integer value, I'd expect you to use extract (>>) and that would skip any leading whitespace.

And while I could make it ignore spaces, that might screw up reading in the author names which are supposed to have spaces. So is this an error in the sample data, or a problem we'll have to be able to deal with?




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]