Proper way to read in a file
I need to read in a configuration file. The file is delimited with ';' and i need to parse out the values.
What is the proper way to Read the file in. I am using ReadFile() after a get a handle to the file. The quandry I'm having is when i read the file in, i have to specify a buffer. This file usually won't be that big, but is there a way to specify the exact size of the file for the buffer at runtime or do i have to put an arbitrary value?
Thanks for any help!