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

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -