|
-
June 7th, 2002, 03:07 PM
#1
unable to recognise 'space' char in ifstream
hi,
I'm stuck with a quite stupid problem....
I'm trying to parse a txt file, and seems like I cannot recognise 'space' ( asc(32) char) .... concider this:
ifstream input("some_text.txt");
while (input >> * pszFile)
{
// ....
if (* pszFile == 32) // space char
// do smth...
all other chars are recognised correctly, only 'space' not.
what am I doing wrong??
thx for reading
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|