Anonymous
public text v1 · immutableint _tmain(int argc, _TCHAR* argv[])
{
Buf[127] = '\0';
File = CreateFile("part1.txt",GENERIC_READ, 0, NULL ,OPEN_ALWAYS , FILE_ATTRIBUTE_NORMAL , NULL);
while(1)
{
ReadFile(File , Buf , sizeof(Buf), &dwRead , NULL);
result[0] = strtok(Buf, " ");
for (int i = 1; i < strlen(Buf); i++){
result[i] = strtok(NULL, " ");
cout << result[i] <<endl;
}
}
return 0;
}