Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
#include <stdio.h> // FILE, fopen, fputs, fclose
#include <stdlib.h> // EXIT_SUCCESS, EXIT_FAILURE
int main()
{
// try to open file "test.txt" for (w)riting
FILE ptr_file = fopen("test.txt", "w");
if (ptr_file == NULL) return EXIT_FAILURE;
// write string into file
fputs("Das ist ein String!", ptr_file);
// close file
fclose(ptr_file);
return EXIT_SUCCESS;
}