I am creating a program in Dev-C++ v. 4.9.9.2 using Win32 API that loads from a file and saves to a string. The only issue is that I cannot split the string to the requested variables...
Here is what is in the file...
08:00:00 PM, 08:00:00 PM, 08:00:00 PM, 08:00:00 PM
#include <string>
char strStartTime[20], strFileString[120];
HANDLE fh;
DWORD dwRead;
DWORD dwFileSize;
fh = CreateFile("Times.txt", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
dwFileSize = GetFileSize(fh, NULL);
ReadFile(fh, strFileString, dwFileSize, &dwRead, NULL);
CloseHandle(fh);
strStartTime = strFileString.substr(0, 11);