Well the ifstream constructor expects a string representing the name of the file to open. Passing it a char doesn't work as you have seen. Pass it a char* or a string.c_str().
Your function doesn't appear to be returning anything. Why have you declared it to return a double?