Maybe one of the ReadFile() functions can help you?