Is the terminal scripting correct 1Label the root directory
Is the terminal scripting correct?
1-Label the root directory and a parent directory.
Root directory is \"C:/\" and a parent directory is \"../\"
2-What is the absolute path of \'Notes1.txt\'?
C:/TLevel/Classes/noteClass/Notes1.txt
3-What is the relative path for the \'notes1.txt?
../TLevel/Classes/notesClass
Is there any easier ways? Thank You
Solution
Hey. Everything in your three answers is correct. And there is no shortcut or easier ways to go with.
1. Root directory is / and parent directory is also /
2. The absolute path of Notes1.txt is: /TLevel/Classes/noteClass/Notes1.txt
3. The relative path of Notes1.txt is: ../TLevel/Classes/noteClass/Notes1.txt
