Oppure
void scrivi_file(char nomefile[],int v[4]={'a','b','c','d'}) { fstream input; input.open(nomefile,ios::in) cin >> v[4]; input.close()}