C++
In pratica
char nome_file[50];
FILE *file;
file = fopen(nome_file, "w");
string array[max]; //Mettiamo caso che ho questo array pieno
while(!feof(file))
	{
		for(int x=0; x<max; x++)
			{
				if(array[x]!="0";
					fputs(array[x], file); //Se è diverso da 0, inserire la stringa nel file (ma da errore)
			}
		fclose(file);
	}
[Error] cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'int fputs(const char*, FILE*)'