Am developing a program to compress and decompress the dicom files.I know that we can create a directory to store compressed files automatically using mkdir...
But my question is if user forgot to select the destination folder for storing the files it should automatically stored in temp directories (such as temp in windows operating system) how to do that...
my code is as follows:
here is where i store the files when user forgot to select destination directory.
but i need to change path which suits for all operating system.
This way you are creating a new unique temporary folder each time. Is that what you want? I doubt it.
Move the creation of the folder outside of the loop, then inside the loop use that folder to create new files:
Joined: Nov 09, 2009
i solved the temporary location by using your idea.. below is the code i used..
next thing am doing is getting the destination selected by the user and storing the compressed files..
i used getSelectedFile() method to get the path, but i don know how to give name for the selected files (for example, 'sample +k' in above code)