Cześć, próbuję stworzyć uniwersalną funkcję i potrzebuje do tego adresu pliku .txt w zmiennej, tylko że funkcja .open() nie chce mi tego zaakceptować, ktoś wie jak poradzić sobie z tym problemem?
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
string adres = "alfabet.txt";
fstream plik;
plik.open(adres, ios::out)
return 0;
}