README.md

December 5, 2022 ยท View on GitHub

Autorun Generator

Description

Generates a autorun.inf

More Info

filename

Submitted On
ByJesse White
LevelBeginner
User Rating4.3 (17 globes from 4 users)
CompatibilityC++ (general), Borland C++
CategoryFiles
WorldC / 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;
}