JSFileApi: Difference between revisions

639 bytes removed ,  30 September 2011
→‎Reading: -readString, preadString
(→‎Reading: -readString, preadString)
Line 282: Line 282:
  //Windows: [ReadFile]  http://msdn.microsoft.com/en-us/library/windows/desktop/aa365467%28v=VS.85%29.aspx
  //Windows: [ReadFile]  http://msdn.microsoft.com/en-us/library/windows/desktop/aa365467%28v=VS.85%29.aspx
     },
     },
 
    /**
      * As [read], but returns a string instead of filling a buffer.
      *
      * @return {string} The content read from the file. Note that its length may be shorter than [size]
      * @throws {FileDescriptorException} In case of error.
      */
    readString: function(size) {
//as [read]
    },
     /**
     /**
       * As [read], but do not advance
       * As [read], but do not advance
Line 300: Line 290:
  //Windows:  [ReadFile] + [SetFilePointer] http://msdn.microsoft.com/en-us/library/windows/desktop/aa365541(v=VS.85).aspx
  //Windows:  [ReadFile] + [SetFilePointer] http://msdn.microsoft.com/en-us/library/windows/desktop/aa365541(v=VS.85).aspx
     },
     },
 
    /**
      * As [pread], but returns a string instead of filling a buffer.
      *
      * @return {string} The content read from the file. Note that its length may be shorter than [size]
      * @throws {FileDescriptorException} In case of error.
      */
    preadString: function(size) {
//as [pread]
    },
== Writing ==
== Writing ==
   
   
184

edits