Spiffs write not working

I tried for both ESP32 and ESP32S2. I tried to read the file by opening the file from my folder.

By the way what to you mean by not created on local hard drive? I created a newfile using the command >>newfile on the shell. Is that the write method? Please give me some brief insight since I am new to this. Thank you