Oct-25-2021, 07:28 PM
i want to create a file object that any attempt to write just drops the data, never calling the system, and any attempt to read gets no data and simulates an end of file, never calling the system, working like "/dev/null" does on Unix/Linux. is an object with functions read() and write() doing the appropriate things and a dummy close() sufficient?