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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -