I have a project in which I have to use the linux shell commands "wc" and "date" in a c++ program. I'm using the code::blocks IDE to make my .cpp file but I don't know how to use those commands within the compiler. Any tips?
Asked
Active
Viewed 222 times
0
-
Do you need to use them as part of the build process or just in code? – user7860670 Aug 05 '18 at 09:07
-
@VTT I need to use them within the code, the "wc" function to read the amount of letters, words and bits in a textfile and the "date" function to get a specified unix epoch time format. These commands need to be executed within the program execution, not before – OomBen Aug 05 '18 at 09:22