Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Windows have a virtual or temporary filesystem natively?

Tags:

c++

file

ram

I have a closed source third party API that writes the output data to a file, however I want to read that data and want to process it further.

The API is a library in DLL and takes a regular file path like "C:\someFolder\someFile"

The current setup requires me to save the data from api to a temp file on the disk and then read this temp file to get the data into memory for processing.

Is it possible in windows to have a virtual file or filesystem in main memory with regular path so that the API can write to the main memory instead of disk which would make things faster as there would be no disk access.

Is this possible natively in windows without using any additional software or API installations?

like image 717
Allahjane Avatar asked May 31 '16 19:05

Allahjane


People also ask

Does Windows use a virtual file system?

In OS/2 and Microsoft Windows, the virtual file system mechanism is called the Installable File System. The Filesystem in Userspace (FUSE) mechanism allows userland code to plug into the virtual file system mechanism in Linux, NetBSD, FreeBSD, OpenSolaris, and macOS.

What is Windows file system?

A file system is a method of organizing files on physical media, such as hard disks, CD's, and flash drives. In the Microsoft Windows family of operating systems, users are presented with several different choices of file systems when formatting such media.

Which of the following file system is supported by the Windows OS?

File Allocation Table (FAT and FAT32) Microsoft New Technology File System (NTFS) Microsoft Resilient File System (ReFS).

How does a file system work?

A file system stores and organizes data and can be thought of as a type of index for all the data contained in a storage device. These devices can include hard drives, optical drives and flash drives.


1 Answers

You can create a named pipe and give the path in a form of \\.\pipe\PipeName to your DLL. Then in your own code connect to the pipe and read. See an example here: Create Named Pipe C++ Windows.

like image 103
facetus Avatar answered Oct 06 '22 05:10

facetus