ALL SEX DATING
clear and disable history
I apologize, I don't understand what you're trying to say. kind regards, Jos well, i'v read some where that for creating a random access file we should spesify an exact size for every record which we want to keep.Random access files are files that you can read from or write to just like ordinary streams and on top of that you can position a file pointer telling the random access file where to read from or from where to write to. for example if we want to create a file which can take 100 record and every record will occure 32 byte (at maximom size),we should give this size(32 byte) to the means after finishing the program we can't have a record with size of 42 byte.now my question is : is it any way that we can make random access file which make it posible to write records with different size of byte,without risrict the program foe a maximom size?
for example if we want to create a file which can take 100 record and every record will occure 32 byte (at maximom size),we should give this size(32 byte) to the means after finishing the program we can't have a record with size of 42 byte.
Nonono, those were the days when IBM's VM (*), CMS, dinosaurs, mammoths and Marylin Monroe ruled the word.
Think of a random access file as a semi-infinite sequence of bytes and a little finger; the little finger points to the current file position and you can read or write anything you want starting at the position to which that little fingers points. if i create a random access file without ristriction,while using the program and updating a record( for example add some information to the record)doesn't it distibute the date of th next record?
and in this condition how can i access to a record (because now i don't know howmany bytesi should move forward!
In the comment above the call to the Random Access File constructor, it says that it opens the file for both reading and writing.
That confused me because the call to the constructor only had "r" in the second argument instead of "rw".I just recently learned about random access files, so that's why i found it so confusing.Anyway, I just wanted to point it out so no one else who is fairly new to java gets confused. XP I have an image uploaded with Rich Faces upload... I can save it to the local c: drive but can't seem to access a network drive.try catch (IOException ioe) This code works to save to C: Drive when I am running Tomcat and same machine as saving drive. How do I write to another drive on my network...???Tomcat has access to both machines with permissions.I have tried to map a drive as M: to the network drive.I have M: drive mapped as M:\first250k on the box with Tomcat running.. Tomcat has rights to this directory and can modify files there. When Tomcat is running as a service, it has authority as the user under which that service is running (maybe Local System).I have tested this by updating files from the windows folder. When you run Tomcat in a window, it is running under your user account and if you have access to that shared resource then Tomcat can access it.You need to add some code to connect to the network resource as a specific user.The easiest way is to use jcifs (jcifs.samba.org), which gives you an enhanced File Output Stream called Smb File Output Stream.