Connecting Tech Pros Worldwide Help | Site Map

File Manipulation

  #1  
Old July 22nd, 2005, 03:06 PM
Ryan Waye
Guest
 
Posts: n/a
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, 03:06 PM
John Harrison
Guest
 
Posts: n/a

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, 04:17 PM
Uwe Schnitker
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line argument - File manipulation magix answers 4 September 29th, 2006 08:55 AM
SQL Server 2005 - FILE manipulation hanging.... PFI answers 2 August 22nd, 2006 09:15 AM
overwrite contents of existing file / manipulation .. ma740988 answers 1 March 6th, 2006 05:15 AM
Problems with File manipulation Alexandre answers 9 November 17th, 2005 02:06 AM
Sound file manipulation in Python Paul Moore answers 6 July 18th, 2005 03:32 PM