By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,677 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,677 IT Pros & Developers. It's quick & easy.

General File management Library

P: n/a
Hi,
I'm looking for a file management library in C++, i.e library that has
createfile, readfile, movefile, ...etc I need it for linux espically,
it no general one is available
does anyone have any idea,
Thankx

May 8 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
yazwas <ya****@gmail.comwrites:
Hi,
I'm looking for a file management library in C++, i.e library that
has createfile, readfile, movefile, ...etc I need it for linux
espically, it no general one is available does anyone have any idea,
Run, do not walk, to http://www.boost.org/ and check out the file
system library.

--
Dave Steffen, Ph.D. Disobey this command!
Software Engineer IV - Douglas Hofstadter
Numerica Corporation
dg@steffen a@t numerica d@ot us (remove @'s to email me)
May 8 '07 #2

P: n/a
On 8 May 2007 15:04:50 -0700 in comp.lang.c++, yazwas <ya****@gmail.com>
wrote,
>Hi,
I'm looking for a file management library in C++, i.e library that has
createfile, readfile, movefile, ...etc
Why do you need those names especially? What's wrong with using the
standard library?

May 9 '07 #3

P: n/a
Why do you need those names especially? What's wrong with using the
standard library?
I would but I need a move_file function, or something similar
when moving function from the same directory to a subdirectory, I
don't want to copy/delete operation, instaed I need move function,
does anyone has any idea

May 9 '07 #4

P: n/a
yazwas wrote:
>Why do you need those names especially? What's wrong with using the
standard library?

I would but I need a move_file function, or something similar
when moving function from the same directory to a subdirectory, I
don't want to copy/delete operation, instaed I need move function,
does anyone has any idea
as someone else already told you, you should check www.boost.org

Regards,

Zeppe
May 9 '07 #5

P: n/a
On 9 May 2007 01:49:06 -0700, yazwas <ya****@gmail.comwrote:
>Why do you need those names especially? What's wrong with using the
standard library?

I would but I need a move_file function, or something similar
when moving function from the same directory to a subdirectory, I
don't want to copy/delete operation, instaed I need move function,
does anyone has any idea
The rename() function is Standard C. You need to implement a copy
function when the file cannot be moved by rename(), e.g. when it shall
be moved between different volumes. The easiest way is to write a
small wrapper function over an existing, OS-dependant function.
--
Roland Pibinger
"The best software is simple, elegant, and full of drama" - Grady Booch
May 9 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.