Solved

UTF File Read

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is the version of ojdbc6.jar 2 37
SQL Retrieve Values 4 55
ORA-01008: not all variables bound. 6 37
Oracle Pivot Question 8 43
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
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…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to take different types of Oracle backups using RMAN.

930 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now