#include <stdio.h> #include <stdlib.h> /* Textfile zum Schreiben und Anfügen öffnen */ FILE *f = fopen("c:\\logfile.log", "a+t"); if (f != NULL) { float fValue = 0.1; /* eine Zeile in die Datei schreiben */ /* siehe auch: http://www.cplusplus.com/reference/clibrary/cstdio/fprintf/ */ fprintf(f, "value:%f\n", fValue); /* Datei schließen */ fclose(f); }
Kategorien
-
Neueste Beiträge
- [ABAP] Workflow: Workitems zu Objekt
- [RAP] Excel-Upload in Fiori-Apps
- [ABAP] OLE2-Objekt ‚SAPINFO‘ aufrufen
- [ABAP] Excel-Daten mit XCO API (xco_cp_xlsx) lesen
- [ABAP] Daten einer internen Tabelle als Excel-Datei speichern (xco_cp_xlsx)
- [ABAP] JSON -> ABAP (xco_cp_json)
- [ABAP] ABAP -> JSON (xco_cp_json)
- [ABAP] String nach SYMSG-Struktur konvertieren
- [ABAP] Unix-Timestamp erzeugen
- [ABAP] SALV-Grid: Eventhandler für Doppelklick auf eine Zelle (double_click)