// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
    string fnm1,fnm2;
    cout << "Indtast filnavn:";
    getline(cin,fnm1);
    cout << "Indtast filnavn:";
    getline(cin,fnm2);
    rename(fnm1.c_str(),fnm2.c_str());
    return 0;
}
