Hello.

When I was playing around and writing an array of strings into a file in a function of class A , and then in another class B, I read the file, storing their strings into another array of the class B. And in this class B, I tried to print out the strings, but it only print out blank spaces. What happen here?

How do you ofstream a file from one class, and then ifstream it in another class?