Solved

UTF File Read

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

Join & Write a Comment

Suggested Solutions

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now