I used this code to create a filestream ,and I tried to output something by this filestream.
Here's my cpp code : (MinGW 9.2.1,Windows 10)
ofstream outfile;
outfile.open("C:\\nul");
for(unsigned long long i=1llu;i<=18446744073709551615ull;++i)
outfile<<i<<endl;
It ran for a few seconds and I use "Ctrl+C" to kill the progress, but it seem to be the available capacity of my C disk is smaller at runtime. My description may not be accurate enough because of my poor English :(
Let me put it another way: I noticed that the remaining space of my C disk is about 0.2Gb less than before.
Is it output to my C disk?If so,where is it?
I am searching for a long time on Net.Please help give some ideas how to achieve this. Thanks in advance !
Upd:
I'm really sure that the remaining space of my C disk is much less than before.