README.md
December 5, 2022 ยท View on GitHub
Description
Generates a autorun.inf
More Info
filename
| Submitted On | |
| By | Jesse White |
| Level | Beginner |
| User Rating | 4.3 (17 globes from 4 users) |
| Compatibility | C++ (general), Borland C++ |
| Category | Files |
| World | C / C++ |
| Archive File |
API Declarations
fstream.h
Source Code
#include <fstream.h>
int main()
{
char filename[80];
cout <<" Welcome To Autorun Maker 1.0 \n \n";
cout <<" Please enter the file name you would like to make autorun\n";
cout <<" ::";
cin.get(filename,79);
ofstream file; //creates an ofstream object
file.open("autorun.inf"); //creates the autorun.inf file and opens it for writing
file<<"[autorun]\n"; //writes to the file
file<<"open="<<filename<<"\n";
file.close();
return 0;
}