J
James
what is the suitable data type to store file information?
(arraylist?,vector?array?.....)
when using java.io.File, I can get the file date,file size, file name, and
whether is folder or is file, so I want to store this information as
variable for processing such like comparing this file name,date,size with
other. So how to do this?
Because of when I "listfile", inside there also got file and folder, I need
to specific it out, so it may got somekind of nested inside the data.
If I want to know what is the size of that folder, I need to total up all
the file that inside that folder, if still found other folder, I need to go
in and add more.
Please show some example of code.
(arraylist?,vector?array?.....)
when using java.io.File, I can get the file date,file size, file name, and
whether is folder or is file, so I want to store this information as
variable for processing such like comparing this file name,date,size with
other. So how to do this?
Because of when I "listfile", inside there also got file and folder, I need
to specific it out, so it may got somekind of nested inside the data.
If I want to know what is the size of that folder, I need to total up all
the file that inside that folder, if still found other folder, I need to go
in and add more.
Please show some example of code.