Changes between Version 20 and Version 21 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile


Ignore:
Timestamp:
08/23/10 14:03:30 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile

    v20 v21  
    305305
    306306=== GetFile ===
     307Get the file handle of the member FILE.
    307308
    308309{{{
    309310FILE* GetFile(void);
    310311}}}
     312==== Parameters ====
     313Function does not accept any parameters
     314==== Return Value ====
     315
     316Function returns FILE handle of underlying FILE.
     317
     318==== Remarks ====
     319
     320==== Example ====
     321
     322{{{
     323CFile file("/tmp/test", "w");
     324if(file.IsOpen())
     325{
     326   fprintf(file.GetFile(), "This is a test\r\n");
     327   file.Close();
     328}
     329}}}
     330In the above example the fprintf could be replaced with ''file.Print("This is a test\r\n");'' eliminating the need for the GetFile() call.
    311331
    312332=== Print ===
     
    390410
    391411=== Read ===
    392 
    393 {{{
    394 bool Read(void * ptr, size_t size);
    395 }}}
     412Reads a binary block of data from a file.
     413{{{
     414bool Read(void *pData, size_t nSize);
     415}}}
     416
     417==== Parameters ===
     418 * pData - pointer to memory to store data received. The application must have sufficient memory allocated.
     419 * nSize - number of bytes to read.
     420
     421==== Return Value ====
     422
     423Function returns true if the specified number of bytes were read
     424
     425==== Remarks ====
     426
     427==== Example ====
     428
    396429
    397430=== Write ===
    398 
    399 {{{
    400 bool Write(void * buf, size_t size);
    401 }}}
     431Writes a binary block of data to a file.
     432{{{
     433bool Write(void *pData, size_t nSize);
     434}}}
     435
     436==== Parameters ====
     437 * pData - pointer to memory to store data received. The application must have sufficient memory allocated.
     438 * nSize - number of bytes to read.
     439
     440==== Return Value ====
     441
     442Function returns true if the specified number of bytes were written.
     443
     444==== Remarks ====
     445
     446==== Example ====
    402447
    403448=== GetBytesRead ===
    404 
     449Returns how may bytes were read from previous Read function.
    405450{{{
    406451size_t GetBytesRead(void);
    407452}}}
    408453
     454==== Parameters ====
     455Function does not accept any parameters.
     456
     457==== Return Value ====
     458
     459Function returns number of bytes read from the previous read operation.
     460
     461==== Example ====
     462
     463
    409464=== GetbytesWritten ===
     465Returns how may bytes were written from previous Write function.
    410466
    411467{{{
     
    413469}}}
    414470
     471==== Parameters ====
     472Function does not accept any parameters.
     473
     474==== Return Value ====
     475
     476Function returns number of bytes read from the previous read operation.
     477
     478==== Example ====
     479
     480
    415481=== Seek ===
    416482