Hello! This is my first time asking a question here, I don't know if there are any rules about posting, but there goes :
I wrote a function in C++ to create a file and write all information of 'F' gender in a newly created text file by the name of 'Femmes.txt'. The file is created every time I execute the program without any problem, but no matter what I try, nothing seems to be written in the text file (it's always empty).
The code to write your array to the file seems to be ok as far as I can tell from the snippet you provided.
Are you sure that your array contains any data?
Maybe you can post the whole code.