Solved

UTF File Read

Posted on 1998-11-17
1
329 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 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

729 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