SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
#include "sd_log.h"
Functions | |
String | newfile (String fname, String suffix) |
Avoids file conflicts by renaming. More... | |
String | int2str (int32_t x) |
Converts an integer to a string. More... | |
String int2str | ( | int32_t | x | ) |
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 |
References sd.