How can write a single data into ?

Book b1 = {"The Z336,0};

while writing this structure into ,i am using function

but how can like name of book into structure o??

but how can write a single data like name of book into structure of spiffs??

Are you trying to update the data in a struct that has previously been written to SPIFFS ?

yes.really

That sounds difficult if not impossible to do directly. If each record was the same size you could potentially seek to the start of the name and write the new one.

What you could do is to copy the original file to a new one and substitute the new book name for the old one as you do. An alternative would be to introduce an extra data item to flag whether the record is valid or not then mark the existing one as invalid and write a whole new record with the new data. You would need to write a maintenance function to periodically copy the file to a new one omitting the deleted records from the new file to save space.

please give me a code example?

wounder:
please give me a code example?

Please choose one of the suggested solutions and give it a try yourself.

You did not confirm exactly what you want to do. I am assuming that once a struct has been written to SPIFFS you want to amend it. Is that correct ? Will the data fields in each record always be the same size (I suspect not) ?