the ls -ali output will be treated like a string input for the c++ program i need to write.
i have tried to output ls -ali command into a txt file and below is the output of the ls -ali:
-rwxr--r-- 1 User1 root 26 Nov2 19:51 Mydb.txt
basically, the first column is the permissions of the file , like writable permission or read only permission.
and the second column will be the directories and the third column will be the user ...etc.
The problem here is i dun know how to write my c++ problem to sum up how many files are writable permission file and also to show the user name ...etc.
Basically is how c++ read column? Not that i didn't try to write the code, i seriously need some kick start ...i have no idea how to read column!