Connecting Tech Pros Worldwide Help | Site Map

renaming an open file using c++

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 27th, 2008, 04:38 PM
mohi
Guest
 
Posts: n/a
Default renaming an open file using c++

hello every one ,
i want to open a file and then do some processing on it and finally
change its name or append something to its name and then save it
back .
can anyone please help!

and also i have to open all the files with a set of
extensions( .txt,.doc etc) files in a directory using only the
extensions as the actual name of the files is not available ..can that
be done ????

thank you
mohan

  #2  
Old June 27th, 2008, 04:38 PM
Juha Nieminen
Guest
 
Posts: n/a
Default Re: renaming an open file using c++

mohi wrote:
Quote:
hello every one ,
i want to open a file and then do some processing on it and finally
change its name or append something to its name and then save it
back .
can anyone please help!
>
and also i have to open all the files with a set of
extensions( .txt,.doc etc) files in a directory using only the
extensions as the actual name of the files is not available ..can that
be done ????
Not with standard C++ libraries. Most compilers provide
system-specific libraries to do those things. You didn't mention your
system so I can't be of more help.
  #3  
Old June 27th, 2008, 04:38 PM
utab
Guest
 
Posts: n/a
Default Re: renaming an open file using c++

On Tue, 22 Apr 2008 02:36:08 -0700, mohi wrote:
Quote:
hello every one ,
i want to open a file and then do some processing on it and finally
change its name or append something to its name and then save it
back .
can anyone please help!
>
and also i have to open all the files with a set of
extensions( .txt,.doc etc) files in a directory using only the
extensions as the actual name of the files is not available ..can that
be done ????
>
thank you
mohan
I did reply you, in case you missed that, did you have a look at the boost
filesystem library, for linux it is perfect and you can do most of what
you have written. copying with a new name, rename , removing etc.

Rgds,

--
Umut
  #4  
Old June 27th, 2008, 04:38 PM
utab
Guest
 
Posts: n/a
Default Re: renaming an open file using c++

On Tue, 22 Apr 2008 02:36:08 -0700, mohi wrote:
Quote:
hello every one ,
i want to open a file and then do some processing on it and finally
change its name or append something to its name and then save it
back .
can anyone please help!
>
and also i have to open all the files with a set of
extensions( .txt,.doc etc) files in a directory using only the
extensions as the actual name of the files is not available ..can that
be done ????
>
thank you
mohan
Here are some links, see the 2nd

http://www.boost.org/doc/libs/1_35_0.../doc/index.htm

http://beans.seartipy.com/2006/05/10...he-filesystem/

HTH
--
Umut
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.