- if (!file)
- file = "./msgbox";
- file = getcpy(expanddir(file));
-
- /*
- ** Check if file to be created (or appended to)
- ** exists. If not, ask for confirmation.
- */
- if (stat (file, &st) == NOTOK) {
- if (errno != ENOENT)
- adios(file, "error on file");
- cp = concat("Create file \"", file, "\"? ", NULL);
- if (!getanswer(cp))
- done(1);
- free(cp);
- }
-