Connecting Tech Pros Worldwide Help | Site Map

File Manipulation

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 22nd, 2005, 02:06 PM
Ryan Waye
Guest
 
Posts: n/a
Default File Manipulation

I have looked extensively, and I have been unable to find commands that
allow a C++ program to manipulate other files in a windows environment.
I use the Dev-C++ compiler. How do I make C++ do
simple things like copy and past files, and navigate directories? Also,
where is a good command reference that I can use so I dont have to post
these annoying questions?

RW

  #2  
Old July 22nd, 2005, 02:06 PM
John Harrison
Guest
 
Posts: n/a
Default Re: File Manipulation


"Ryan Waye" <rmw998@comcast.net> wrote in message
news:kI6dnRAcQeeXjETdRVn-iQ@comcast.com...[color=blue]
> I have looked extensively, and I have been unable to find commands that
> allow a C++ program to manipulate other files in a windows environment.
> I use the Dev-C++ compiler. How do I make C++ do
> simple things like copy and past files, and navigate directories? Also,
> where is a good command reference that I can use so I dont have to post
> these annoying questions?
>[/color]

No such commands exist in standard C++. You need to use the Windows API
instead. How you do that with the Dev C++ compiler I don't know, and its off
topic on this group anyway which only deals with standard C++.

For help on the Windows API look at the MSDN site, msdn.microsoft.com.

john


  #3  
Old July 22nd, 2005, 03:17 PM
Uwe Schnitker
Guest
 
Posts: n/a
Default Re: File Manipulation

"John Harrison" <john_andronicus@hotmail.com> wrote in message news:<2jsi02F15i2keU1@uni-berlin.de>...[color=blue]
> "Ryan Waye" <rmw998@comcast.net> wrote in message
> news:kI6dnRAcQeeXjETdRVn-iQ@comcast.com...[color=green]
> > I have looked extensively, and I have been unable to find commands that
> > allow a C++ program to manipulate other files in a windows environment.
> > I use the Dev-C++ compiler. How do I make C++ do
> > simple things like copy and past files, and navigate directories? Also,
> > where is a good command reference that I can use so I dont have to post
> > these annoying questions?
> >[/color]
>
> No such commands exist in standard C++. You need to use the Windows API
> instead. How you do that with the Dev C++ compiler I don't know, and its off
> topic on this group anyway which only deals with standard C++.
>
> For help on the Windows API look at the MSDN site, msdn.microsoft.com.
>
> john[/color]

Alternatively, one can use the Boost Filesystem Library.
 

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,989 network members.