Reading the BAM or Directory

R

Raymond BARBER

Hi, can one of you nice folks give me a steer as to how to READ the BAM or
directory of a disc and print out the result to the screen or a printer. I
know it should be simple but having trouble finding info
Thanks very much for any help

REB
 
T

Tom Anderson

Hi, can one of you nice folks give me a steer as to how to READ the BAM
or directory of a disc and print out the result to the screen or a
printer. I know it should be simple but having trouble finding info
Thanks very much for any help

I'd start by trying a more appropriate newsgroup! Perhaps one to do with
disks?

tom
 
L

Lew

Raymond said:
Hi, can one of you nice folks give me a steer as to how to READ the BAM or
directory of a disc and print out the result to the screen or a printer. I
know it should be simple but having trouble finding info
Thanks very much for any help

I don't know what a "BAM" is, but try something like:

for ( String name : new File( parentDirectoryName ).list() )
{
System.out.println( name );
}

along with appropriate exception handling.
 
E

Eric Sosman

Hi, can one of you nice folks give me a steer as to how to READ the BAM or
directory of a disc and print out the result to the screen or a printer. I
know it should be simple but having trouble finding info

See Tom Anderson's response. Also, be aware that some file
systems maintain no such map explicitly, but use other data
structures to keep track of what's in use and what's available.
That is, you may need to read and interpret some data structure
specific to the file system in order to deduce a map.

Finally, note that the map (explicit or implicit) may be too
large to make much sense as a printout: A terabyte drive, even
coarsely divided into 8KB "blocks," has 134 million such blocks.
 
A

Arne Vajhøj

Hi, can one of you nice folks give me a steer as to how to READ the BAM or
directory of a disc and print out the result to the screen or a printer. I
know it should be simple but having trouble finding info
Thanks very much for any help

BAM = Block allocation map ?

Java would not be the right language for that.

You can do:
[Java]--(JNI call)-->[C/C++]--(call)-->[OS]
to get the information but you could just as well
write everything in C/C++.

There are no problem getting a list of all files
in a directory via Java (see the java.io.File class),
but that does not solve the first problem.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top