Iam writing a Cpp program to read the contents of a file. Iam doing this in my Redmi note 5 Pro Android 9 , oreo through Termux app [rooted].
The thing is it is not recognising my absolute path, but it is able to work with the files in my source code's directory , ~ is my root directory( in my case the home is root.) My Cpp file should be able to locate my file ~/sdcard/b.sh , but it is failing to do so, i wonder why?
This is my code:
After i run this in the terminal
Terminal:
The thing is it is not recognising my absolute path, but it is able to work with the files in my source code's directory , ~ is my root directory( in my case the home is root.) My Cpp file should be able to locate my file ~/sdcard/b.sh , but it is failing to do so, i wonder why?
This is my code:
After i run this in the terminal
Terminal:
Last edited: