First is there something in VC that is like app.path in VB?

Second I am using the following code to read text from a text file. But my text file is multi lines with carraige returns. How do I make one varible with all the text in it.

I know that this is the old way to do things but I want to learn the basics first.

Code:
	FILE *p_file;
	char out[256];
	char *p_out = out;

	p_file = fopen(FileLoc , "r");

	while (!feof(p_file))
		{
			fgets(out,sizeof(out),p_file);
		}

	fclose(p_file);
Thanks