Hi All,
this is driving me nuts and hope someone can point me in the right direction. I have some old very simple code that save and opens a file. It's worked for a very long time. I've now upgraded to lubuntu 14.04 (it may have done GCC as well I presume?) and all of a sudden it's stopped working. What I do is
Code:
ifstream myfile ("menu.txt");
if ( myfile.is_open( ) )
{
while ( getline (myfile,line) )
{
prcocess stuff
}
}
else
{
can't open error
}
Since the upgrade in Lubuntu I suddenly can't open. What I've tried
1. putting full path. Hasn't worked
2. chmod a+rwx on txt file, didn't work
3. tried a new text file helloworld.txt, didn't work.
4. tried as sudo, no luck
Should add I've upgraded my harddrive to SSD can this make a difference?
Can anyone advise why a simple open file as suddenly stopped working, or what I might try to get it to work?
Thanks