I am new to this forum..I am trying to run a code..
I created a text file first with the name mmap.txt and wrote some lines in that....but I dont know why its not working...I just used simple printf() scanf() functions.... It reads integer value for the position three times...but doesnt reads a character....can somebody please help me with that?
the code is:
fileptr=mmap(0,26,PROT_READ | PROT_WRITE,MAP_SHARED,fd,0);
printf("Enter the position in the file you want to change: ");
printf("Enter the new letter for that position: ");