Create a file descriptor

mukesh picture mukesh · May 9, 2011 · Viewed 14.8k times · Source

I want to create a file descriptor in C whose value i will specify in code. I have a integer variable which specifies the value of file descriptor to be created. For example i may need a file descriptor whose value is 5 and later associate that with the file named "sample.dat" .

Answer

user3458 picture user3458 · May 9, 2011