position The current position of the pointer in the file that the filePointer

Position the current position of the pointer in the

This preview shows page 242 - 245 out of 334 pages.

position The current position of the pointer in the file that the filePointer argument identifies.
Image of page 242
C Language Library Reference Clib File Input and Output Methods Siebel eScript Language Reference Version 8.1, Rev. A 243 If not successful, then it returns the following value and stores the error value in the errno property: Negative 1 The cursor position in a text file might not correspond exactly with the byte offset in the file. A text file is a file that is not opened in binary mode. Format Clib.ftell( filePointer ) The arguments for this method are the same as the arguments for the Clib Clear Error method. For more information, see “Arguments for the Clib Clear Error Method” on page 289 . Clib Move Cursor to Beginning of File Method The Clib Move Cursor to Beginning of File method moves the file cursor to the beginning of a file. This method is identical to the Clib Set Cursor Position method with the mode argument set to SEEK_SET and the offset argument set to 0. The only difference is that the Clib Move Cursor to Beginning of File method also clears the error indicator for the file. Format Clib.rewind( filePointer ) The arguments for this method are the same as the arguments for the Clib Clear Error method. For more information, see “Arguments for the Clib Clear Error Method” on page 289 . Usage With a Unicode File Siebel CRM uses UTF-16 encoding when it writes to a file in Unicode. The first two bytes of the file are always the BOM (Byte Order Mark). If the Clib Move Cursor to Beginning of File method calls a Unicode file, then it references BOM (-257) and not the first valid character. To skip the BOM, you must configure Siebel CRM to call the Clib Get Character Method or the Clib File Get Character Method method at least one time. For more information, see “Clib Get Character Method” on page 240 . Example For an example, see “Clib Get Characters to Next Line Method” on page 240 . Clib Read From File Method The Clib Read From File method reads data from an open file that you specify in the filePointer argument. It then stores this data in an argument, buffer, or BLOB that you specify. If this argument, buffer, or BLOB does not exist, then this method creates it. It returns one of the following values: If successful, then it returns the number of elements it read.
Image of page 243
Siebel eScript Language Reference Version 8.1, Rev. A C Language Library Reference Clib File Input and Output Methods 244 If you specify the destBuffer argument, then it returns the number of bytes read, up to the value you specify in the bytelength argument. If you specify the varDescription argument, then it returns one of the following values: 1 if it reads the data 0 if a read error occurs or if it encounters the end of file Format A Clib.fread( destBuffer, bytelength, filePointer ) Format B Clib.fread( destVar, varDescription, filePointer ) Format C Clib.fread( blobVar, blobDescriptor, filePointer ) Arguments Table 142 describes the arguments for the Clib Read From File method.
Image of page 244
Image of page 245

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors