Create Your Own file stream

Hi Every One this is my first post :)

I was wondering if there is a way to create my own file stream. My goal is to be able to manipulate the file system with out using any external libraries (such as the std)

I am on GNU/Linux and this is mostly for fun/education

any tips or suggestions would be great.

Thank you.
I guess you can make your own stream class that wraps these low-level functions:
http://www.gnu.org/s/hello/manual/libc/Low_002dLevel-I_002fO.html
Thanks for the reply. I will look into that

but I would like to ask another question: How do libraries such as boost make their own file system api?

Thank you
Last edited on
Why don't you read the source code of boost::filesystem?

Essentially though, they call the appropriate system calls, if you're on linux check section 2 of your system manual:

man 2 intro

and

ls /usr/share/man/man2/

Topic archived. No new replies allowed.