I´m pretty new to C++ and I want to create a function that reads all content from a .txt file to a "something" (I thought a char array would do the trick) and I then want to return the file content (i e the char array) from the function back to main{}.
Wherever I look I only find how do read line-wise and then handling the information within the function, how do I get the data from the file to my array and then to the main function?