Originally Posted by Desolation
getline() needs a char* and not a char.
This is what you may want to do:
SAM_File.getline(Buffer, 50);
Besides, remember that you cannot compare C-style strings with the != operator. Either use std::string or use the strcmp() function.
Edit: You also declare the function as returning a string, yet you never use strings anywhere in your code nor do you return anything at all. You also end your function with a semi-colon which is not necessary. It is only necessary to put a semi-colon after a closing brace when declaring a struct or a class and maybe an enum too (not sure about this one).