c - Error while Reading from a file -
I am trying to read the contents of a file as below:
  Int frameFD = 0; Int readResult; Four buff [BUFFER_SIZE]; Framefd = open (MY_FILE, O_RDWR); ReadResult = Read (MY_FILE, Buff, Buffafia);     BUFFER_SIZE  is 256. 
I'm saying the error 'error: const char *' invalid conversion of 'int' from '[-fpermissive]' Any solution to this issue?
read () uses file descriptor, not file name:
  readResult = read (frameFD, buff, BUFFER_SIZE);  
Comments
Post a Comment