Closed petervanderwalt closed 3 years ago
You know how minutes after posting an issue it hits you right after looking at it for hours! Classic case here. Looking at the screenshot I just oploaded, I realized lowercase isnt 8.3 format. Threw in a toUpperCase on the string before converting it, and sorted!
String fileName = filename.substring(0, 8); fileName = fileName += ".GCO"; fileName.toUpperCase(); flashDrive.setFileName(fileName.c_str()); // does not work
Works fine! flashDrive.setFileName("TEST.TXT");
but if I try setting the filename dynamically:
File gets created, but cannot open it in Windows: opening the file from explorer: