Relative Content

Tag Archive for cstoragelow-levelhard-drive

Direct access to an empty hard drive

I’m developing a snake bot in c that is using zobrist hashing. However I’ve only got 16 Go of RAM which means that I can store around 10 ^ 9 different data. It’s not enough for my case. I want to store my data, which is a big array directly in my hard drive (nvme 4To). I can’t use fopen(), fclose(), … because if I store it in just one file, it will take forever to extract let’s say the 1001 element of the array. If I store each values of the array in different files (let’s say the the name of each file is the index of the array), it will take a lot of memory space and take a very very long time to find a file.