Hi ,
Can anyone tell the difference between a fileOpen as well as a fileRead. I can figure out that a fileRead is getting the contents of a file and storing it in memory. But what is fileOpen then?
[SOLVED]FileOpen vs FileRead
[SOLVED]FileOpen vs FileRead
Last edited by Muneer on Tue Feb 01, 2011 5:51 am, edited 1 time in total.
Even the smallest person could change the course of the future - Lord Of The Rings.
In the end all that matters is what you have done - Alexander.
Even after a decade oh god those still gives me the shivers.
In the end all that matters is what you have done - Alexander.
Even after a decade oh god those still gives me the shivers.
Re: FileOpen vs FileRead
In what OS, what context?HardCoder wrote:Hi ,
Can anyone tell the difference between a fileOpen as well as a fileRead. I can figure out that a fileRead is getting the contents of a file and storing it in memory. But what is fileOpen then?
Re: FileOpen vs FileRead
Hi James,
the fileOpen and fileRead context I was referring to was that of a Virtual File System.
the fileOpen and fileRead context I was referring to was that of a Virtual File System.
Even the smallest person could change the course of the future - Lord Of The Rings.
In the end all that matters is what you have done - Alexander.
Even after a decade oh god those still gives me the shivers.
In the end all that matters is what you have done - Alexander.
Even after a decade oh god those still gives me the shivers.
Re: FileOpen vs FileRead
Hi.
That was what I was confused about. I can figure out the read but still cant understand what "openFile" does. Can you describe the implementation of the "openFile" , i.e when an application calls the openFile with a path name to the file, what exactly is the function expected to do and return to the application.One opens the file, one reads from the open file.
Even the smallest person could change the course of the future - Lord Of The Rings.
In the end all that matters is what you have done - Alexander.
Even after a decade oh god those still gives me the shivers.
In the end all that matters is what you have done - Alexander.
Even after a decade oh god those still gives me the shivers.
- prinzrainer
- Posts: 13
- Joined: Sun Nov 22, 2009 11:36 pm
Re: FileOpen vs FileRead
Basically it manages files that being used. For example, one program might request an openfile for writing. With this, the fs manager can block another program from opening it.
Re: FileOpen vs FileRead
Yeah I got it. That does seem logical.
Thanks to everyone.
Thanks to everyone.
Even the smallest person could change the course of the future - Lord Of The Rings.
In the end all that matters is what you have done - Alexander.
Even after a decade oh god those still gives me the shivers.
In the end all that matters is what you have done - Alexander.
Even after a decade oh god those still gives me the shivers.