i made a really basic program to make a text file then transfer it to a dat file and in tried to make it read the program back to me when i run the program here is the code

Code:
#include<iostream>
#include <windows.h>

using namespace std;

int main()
{
    system("rename thing.txt thing.dat");
    system ("\"C:\\WINDOWS\\Desktop\\thing.dat\"")
;}
thanks

EDIT
i use dev-C++