----------------------------------------------------------------------------------------------------------------------------

Can I only store files in a NFileStorage?

No, the "File" in NFileStorage refers to the fact that the data we store is stored on a file (so the file is used as a storage), it doesn't mean you can only store files in there.

As always its just your imagination that is the limitation of how you use it, and where its practical.

The entire list of persisting items in the FileStorage using C# code is:
For your information; all above methods eventually are convenience functions/wrappers to the one that stores the array of bytes.

In the same way as you being able to store the information you are also offered a variety of ways to retrieve the information from a filestorage in C#:

So what other scenarios would you use a FileStorage for?

I used NFileStorage in many situations already where I didn't store files, but simply data like strings, or complex objects;

Just to give you a bit more practical view on an example other than storing files, take a look at the following pseudo code:

        StartMe
        {
            List items = GetAllItems(...)
            foreach (item in items)
            {
                  string uniqueName = getName(item)
                  if (FileStorage.Exists(uniqueName))
                  {
                        // save time, and skip it, we already calculated it
                  }
                  else
                  {
			result = PerformTimeConsumingOperation()
			FileStorage.Store(name, result)
                  }
            }
        }

----------------------------------------------------------------------------------------------------------------------------