How do you differentiate between a one space tab and one that takes up a whole line while parsing a text file in c++ without using regex?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would store the line/string in a variable until you hit an \n. You would then, check if the string is equal, or even just contains, a single tab or, other chars also.
That would be a good way, I think. I don’t know how hard this would be in C++, but I don’t think it’d be too hard.
If this isn’t what your looking for, I’d try restating your question… Be more clear on what your objective, or goal, is.