I am new to C++. My programming experience thus far has been in Java. I've been given an assignment to parse some things out of a file using C++ file streams but I am not allowed to use the C++ strings to manipulate what comes from the file. I have to use cstrings instead. I am trying to read the file one line at a time but the specifications say that I have to be able delimit on /r, /n, and /r/n. I can't figure out a safe way to do that with cstring. Every way that I come up with either is unsafe because of potential buffer overflows or makes it so that I potential lose data that I already got from the file. Can anyone propose a good way to approach this problem? Thanks!