HOW TO OPEN A FILE USING OPEN()

I tried MAN page for open.. but didn,t got idea ..please help for the same....
in c++
Last edited on
I tried MAN page for open.. but didn,t got idea ..please help for the same....
in c++ (sic)

In the quiet words of the Virgin Mary, come again?

Wazzak
i want to open a file /dev/sda and show its content using open function
FILE *fp
fp=open(devicePath,mode),,
canany 1 give me the code for this
Topic archived. No new replies allowed.