You can use a subflow as the last stage in a flow to write data to a file or database and even perform some processing on the data before writing the data to the output destination. You can create a subflow as simple as a single sink stage that is configured in a way that you want to reuse in multiple flows, or you could create a more complex subflow that processes data in some way before writing it to the output destination.