I am working on a project that works with bits.
Currently we can read in a file name, open it in binary and get a char array from the binary file. If not file name is given, I have to get the char array from stdin. The input will thus be of variable length.
Is there a way to read the entire stdin into a char array?
Thank you