I need to write a program which can decrease the free disk space. For eg, if the free disk space is 5GB, the application should ask the user how much space do you want occupy. Application should take the input eg, 2GB and decrease the disk space to 3GB.
Does anyone have any suggestions on how this can be implemented. Can we create a text file of the size specified by the user?