I am trying to read a file into an array of type char. The file is just a basic document, so it contains whitespaces and such. The whitepaces should not be copied to the array. What function is the best for this, and how do I use it? I looked at the gnu docs but the are too complex for me.