using ReadFile, WriteFile, strSafe
I'm working on a program and was trying to update it to use the strsafe functions, but they work in TCHAR and LPTSTR instead of std::string strings.
Also, the current versions of the classes use the std::ifstream for reading each line of the text files and appending them to a vector of strings. When I tried moving to windows' ReadFile function, I could not find a way to get individual lines from the file. Would I be able to parse the resulting buffer for newlines to generate my vector of LPTSTR?
In one file reading function, I'm using a simple file structure of [length of message] [message] [length of signature] [signature] to perform my read operations. I assume I could just do this the same way by passing the size of the length identifier to the ReadFile?