Hi dear friends, I am looking for the java command that can operate on chunk of byte (block) with fix sizes This means that I want operate on hard disk directly. Thank you so much for your hint and help, Elahe
Using JAVA - a language that is operating system independant? Don't think so. Unless I am completely misunderstanding what you are asking.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Dec 12, 2001
If I like to clear my question I have to say I like to design and implement a basic file system that uses linked list disk block allocation algorithm in order to get idea and concepts and techniques of: Linked list disk block allocation Free space management Directory implementation Disk block cache So first I want to know can I use Java and then could you give me some hint that from where I have to start still I don't know how to approch it... Many thnaks, Elahe
You might want to take a look at the Java source for the File class and the FileSystem class. If you just want to simulate a file system you might be able to get away with using the RandomAccessFile class. Otherwise you will get into some platform specific JNI code. See: http://java.sun.com/j2se/1.4/docs/api/java/io/RandomAccessFile.html