954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

File System simulation

Hey guys!!!
I know these simulations are too much but....
still another one and I am havin some problems with that///
I have to create a file system simulation that has to understand these commands:
cr a - create a new file named a, size ==0;
rm a - remove file a
op a - open file a
cl a - close file a
rd a - read file a
wr a - write file a
cp a b - copy file a to file b

I have to use:
DIRECTORY IMPLEMENTATITON
LINEAR LIST
ALLOCATION METHODS
CONTIGUOUS ALLOCATION
LINKED ALLOCATION(FAT)
FREE - SPACE MANAGEMENT
FREE-SPACE LIST
PROTECTION AND SECURITY

I HAVE TO USE AN ARRAY OF BYTES

P.S PLEASE GIVE ME SOME IDEA... I KNOW HOW TO DO SOME OF THE STAFF BUT I AM NOT SURE IF THIS IS THE RIGHT WAY TO APPROACH IT
LIKE INSTEAD OF ARRAY OF BYTES I WILL CREATE A BYTE BUFFER TO ALLOCATE THE SPACE...
BUT I HAVE NO IDEA HOW TO ALLOCATE THE SPACE ONCE THE FILE IS CREATED!!!!

sidereal
Newbie Poster
9 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Open up a text editor and get started.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

Then I tried to emulate file system I had no idea how to do that. BoxedApp SDK helped very much.
(But that project I wrote in C++:) )

JAGjug
Newbie Poster
6 posts since May 2009
Reputation Points: 8
Solved Threads: 0
 

I don't understand the second half of your explanation, so hopefully this is useful to you. File class: http://java.sun.com/javase/6/docs/api/java/io/File.html

For example you can easily create a new file using the createNewFile method. There are plenty of useful methods in there.

BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
 
Then I tried to emulate file system I had no idea how to do that. BoxedApp SDK helped very much. (But that project I wrote in C++:) )

And I am sure the guy has already solved his problem 3 years ago, Talk about speedy replies !!!!

stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
 

Oh ****, what a waste of time. I didn't even realize that this noob had upped an ancient thread.

BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
 
Then I tried to emulate file system I had no idea how to do that. BoxedApp SDK helped very much. (But that project I wrote in C++:) )


Your help in time.:cool: :idea:
excellent sdk!

MastAvalons
Light Poster
31 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You