943,654 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 4727
  • Java RSS
Apr 30th, 2006
0

File System simulation

Expand Post »
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!!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sidereal is offline Offline
9 posts
since Apr 2006
May 1st, 2006
0

Re: File System simulation

Open up a text editor and get started.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
May 13th, 2009
0

Re: File System simulation

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++ )
Reputation Points: 8
Solved Threads: 0
Newbie Poster
JAGjug is offline Offline
6 posts
since May 2009
May 14th, 2009
1

Re: File System simulation

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.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008
May 14th, 2009
1

Re: File System simulation

Click to Expand / Collapse  Quote originally posted by JAGjug ...
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 !!!!
Last edited by stephen84s; May 14th, 2009 at 3:00 am.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
May 14th, 2009
0

Re: File System simulation

Oh ****, what a waste of time. I didn't even realize that this noob had upped an ancient thread.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008
29 Days Ago
0
Re: File System simulation
Click to Expand / Collapse  Quote originally posted by JAGjug ...
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.
excellent sdk!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MastAvalons is offline Offline
13 posts
since Jan 2012
Message:
Previous Thread in Java Forum Timeline: Sentinel help
Next Thread in Java Forum Timeline: How to append in ObjectOutputStream





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC