Connecting Tech Pros Worldwide Help | Site Map

File Manipulation

Ryan Waye
Guest
 
Posts: n/a
#1: Jul 22 '05
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
John Harrison
Guest
 
Posts: n/a
#2: Jul 22 '05

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


Uwe Schnitker
Guest
 
Posts: n/a
#3: Jul 22 '05

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.
Closed Thread