You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
397 B

4 years ago
#include <stdio.h>
4 years ago
#include <fstream>
#include <string>
int main (int argc, char *argv[])
{
std::string path(argv[1]);
std::fstream file;
file.open(path,std::ios::trunc | std::ios::out);
file<<"hello world\n";
file.close();
printf ("Hello, world!\n");
return 0;
}
4 years ago