SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
#include "sd_log.h"
Go to the source code of this file.
Functions | |
String | newfile (String fname, String suffix) |
Avoids file conflicts by renaming. More... | |
String newfile | ( | String | fname, |
String | suffix = ".csv" |
||
) |
Avoids file conflicts by renaming.
Checks if the filename exists. If so, appends an integer. For example, if "test.csv" and "test(01).csv" are present in the file system and you call String x = newfile("test"); x will contain the string "test(02).csv"
fname | The desired file name (without the extension) |
suffix | The file extension |
Definition at line 5 of file sd_log.cpp.