Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading/Writing

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, I'm a C++ newbie.
1. How do you rename/move files and what are the properties and related commands to this?
2. How do you write files and what are the properties and related commands to this?

Is there any tutorial or database for the commands and parameters? Something like php.net maybe?
 
#include <iostream.h>

int main ()
{
int selection;
cout << &quot;Insert 1 for pak 0 or 1 for pak 2. \n&quot;;
cin >> selection;
if (selection == 1)
cout << &quot;Created Pak 0 \n&quot;;
public static void rename( String C:\Dev-C++\tests\t1.dev, String C:\Dev-C++\tests\newdev.dev );
else if (selection == 2)
cout << &quot;Created Pak 1 \n&quot;;
else
cout << &quot;Invalid Command \n&quot;;
cin >> selection;
int exit;
cin >> exit;
return 0;
}

Doesn't work. Also, how do I create an &quot;if&quot; and int thing that can look for a word instead of a number?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top