This is for my basic computer programming class where we learn the fundamentals of C and C++. I know how to change directories with 'cd directory_name' , but I don't know how to go backwards and return to the current directory's parent directory.
Could someone kindly clue me in?
(Please pardon my misuse of all the technical jargon. I'm new to this . =) )How do i return to my parent directory in ANSI C?
Hm....
1. uses dir.h and see documentation/help of dir.h
2. chg dir =%26gt; chdir(%26lt;path%26gt;)
3. backward =%26gt; chdir(';..';)How do i return to my parent directory in ANSI C?
';cd ..'; [CD double dot] will move you to parent directory.
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment