From your comments, it appears you are saying that it reaches lines 11 to 20, but outputs a blank line on line 15? Is this correct?
If so, it means you are successfully opening the file, but the getline call puts an empty string into fileName.
An additional check would be to wrap a check around the getline call:
1 2 3 4
if (!getline(applicationIconPath, fileName))
{
std::cout << "Error reading applicationIconPath\n";
}
Note that you are calling rm on the file after you run it, so unless you are re-creating the file each time, you will get different behavior the second time you run your program.
Are you positive that the very first line of your file contains text?
Also, "/" is correct. "//" would not be. So you're good there.