I am making a game it is a hacker game and I need a shell type thing were they can type in there commands. So I need it to be like this: cd dir and if that dir exists then it goes there. Also if they type 'ls' It will show the files in the dir...
So is there a way to do this? I mean I could do it with IF...ELSE but that would be alot of code...
So is there a way to do this? I mean I could do it with IF...ELSE but that would be alot of code...