Avatar of pzozulka
pzozulka asked on

C Programming: Working with OPEN(2) and File Descriptors

After reading about OPEN(2), I am still confused about the returned value.

http://man7.org/linux/man-pages/man2/open.2.html

It says that the returned value is a File Descriptor, but I tried googling it, and cannot find much about file descriptors, and how to use them.

I have a project that requires me to work with file descriptors, and I would like to learn more about their built-in functions.

Can you please provide a examples of working with "fd" after using the OPEN command?
C

Avatar of undefined
Last Comment
mccarl

8/22/2022 - Mon
SOLUTION
ozo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
mccarl

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
pzozulka

Thanks to both of you. mccarl, your explanation is extremely clear, so no further advice is needed. I'm sure I'll be posting more questions about this project soon.
mccarl

Not a problem, glad to help!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck