Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

UTF File Read

Posted on 1998-11-17
1
Medium Priority
?
334 Views
Last Modified: 2008-03-17
What is the equivalent of
         while(fgets(Buffer,80,fp));
in UTF_file operations?

How do I read until EOF?
0
Comment
Question by:lvenkat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
sganta earned 400 total points
ID: 1082620
Hi,


....
....
LOOP
BEGIN
  GET_LINE(file_handle,buffer);
  ...
EXCEPTION
  WHEN NO_DATA_FOUND THEN
    EXIT;
END;
END LOOP;
.......
.......


Where
GET_LINE(file_handle IN FILE_TYPE, buffer OUT VARCHAR2);

       Read a line of text from the file.

   Parameter:

       file_handle - File handle returned from the FOPEN function that you want to get a line of text from buffer - Data buffer to store the next line of text in the file.

   Exceptions raised:

       NO_DATA_FOUND   - reached the end of file
       VALUE_ERROR   - line too long to store in buffer
       INVALID_FILEHANDLE - not a valid file handle
       INVALID_OPERATION  - file is not open for reading
       READ_ERROR   - OS error occurred during read


Hope this helps you.


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question