I'm using Dev-Cpp IDE.

I'd like to take input from a file. so, I wrote the following input function for my program.
Code:
int input (void)
{    
    int i, j;
    FILE* ip_file;
    
    ip_file = fopen("d:\sudoku_solver\input.txt","r+");
    for (i=0;i<size;i++)
    {
        for (j=0;j<size;j++)
        {
            fscanf(ip_file,"%d",&sudoku[i][j]);
            //copy to TempArr
            sudoku[i][j]==TempArr[i][j];
        }
    }
}// input()

my input file looks like this:
PHP Code:
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000 
The problem is, when I compile the code. i am not getting errors but when I run.. the command prompt is closing saying "encountered error, needed to close"...

what shall I do.

This same happens when I take input file at command line.