Number 0.124 is written into file using dbms_xslprocessor.CLOB2File

Number 0.124 is written into file using dbms_xslprocessor.CLOB2File.
i have done dbmds_output and checked in the Clob content the value appears as .124 but in the file it appears as 124
Please help me to rectify this problem
Edited by: 796208 on Oct 7, 2010 4:55 AM

You shouldn't have the problem. Show some test cases.
SQL> CREATE TABLE test_clob (id NUMBER,clob_col CLOB);
Table created.
SQL> DECLARE
  2    v_clob_locator CLOB;
  3    v_clob         CLOB;
  4  BEGIN
  5    INSERT INTO test_clob
  6    VALUES
  7      (1, EMPTY_CLOB())
  8    RETURNING clob_col INTO v_clob_locator;
  9    v_clob := 'This is test line
10  and it coniatns 0.124 and it seems that
11  .124 is not showing.';
12    dbms_lob.append(v_clob_locator, v_clob);
13    COMMIT;
14  END;
15  /
PL/SQL procedure successfully completed.
SQL> set long 10000
SQL> SELECT * FROM test_clob;
        ID
CLOB_COL
         1
This is test line
and it coniatns 0.124 and it seems that
.124 is not showing.
SQL> DECLARE
  2   v_clob CLOB;
  3  BEGIN
  4   SELECT CLOB_COL INTO v_clob
  5   FROM test_clob
  6   WHERE id=1;
  7   DBMS_XSLPROCESSOR.clob2file(v_clob,'TEST_DIR','clobtest.txt',0);
  8  END;
  9  /
PL/SQL procedure successfully completed.
SQL>
C:\>type clobtest.txt
This is test line
and it coniatns 0.124 and it seems that
.124 is not showing.
C:\>The only thing is the last parameter (Character set id).

Similar Messages

  • Writing data into files using VHDL Textio

    Hi 
    I was trying to write nos. from 1 to 8 into a text file using the below program.
    process
    type IntegerFileType is file of integer;
    file data_out: IntegerFileType ;
    variable fstatus: FILE_OPEN_STATUS;
    variable coun: natural:= 1;
    begin
    file_open(fstatus,data_out,"myfile.txt",write_mode);
    for i in 1 to 8 loop
    write(data_out, coun);
    coun := coun + 1;
    end loop;
    file_close(data_out);
    wait; -- an artificial way to stop the process
    end process;
    But getting the below attached result..
    Can you please help me out what could be wrong with the program.
    Thanks & regards
    Madhur

    Do you want the numbers in the file to be human readable ASCII?
    Then you'll need to convert your coun to a string. 
    declare another variable of type line (type access to string).
    do a write() to the line, then a writeline() to the file.
    natural'image(coun) will convert coun to a string.
    Google should help you find example code that will help.

  • Number of lines being written into a file

    Hi All,
    I get "n" number of input text files - having "m" number of lines each.
    Based on the first character of each line (there are 5 distinct types I can get) i have to write each line in a separate file.
    To reduce I/O i am first storing the lines in "m" different StringBuffer objects (based on the first character of each line).
    Then finally I am storing each stringbuffer content (using stringbuffer.toString()) in a file... So finally I will have "m" different output files.
    Now I have a small constraint. The number of lines I can write to any output file cannot exceed 500. If it does, I have to create a new file with the same name but with an extension like "fileOne_1" and then save lines 501-1000 in the new file.
    How do I achieve this? Is there a solution in the usage of BufferedWriter/BufferedOutputStream/FileWriter/FileOutputStream to achieve this?
    Or is there some other way?
    Thank you.

    Ram wrote:
    Do the following with some logic. This is just a blue print to form the logic. Use FileInputStream and FileOutputStream.The blueprint is fine, but I would suggest using a BufferedInputStream and PrintStream(s). That way lines can be read in with readLine() and written out with println(), without the hassle of worrying about newline combinations.
    @OP: Don't worry about efficiency at this stage. Get your program working, and only worry about it then if you think there's a much better solution available. Ram's blueprint only requires you to store one line at a time. You'd be amazed how often the best programs are the simplest ones.
    Winston

  • Error while wrting data into file using Applescript

    am using the below script for writing the file, but sometimes am getting errors like mentioned below, pls suggest..
    set filepath to POSIX path of "Macintosh HD:Library:Application Support:Macromedia:mms.cfg"
    try
        tell application "System Events"
            if file filepath exists then
                set myFile to open for access file filepath with write permission
                set fileData to read myFile
                set eof myFile to 0
                write "blah blah" to myFile
                close access myFile
            else
                return "File Not Found"
            end if
        end tell
    on error
        return false
    end try
    Error:
    "Network file permission error." number -5000 from file "Macintosh HD:Library:Application Support:Macromedia:mms.cfg"
    Also some times i will get this error, am unable to close the opened file
    "File file Macintosh HD:Library:Application Support:Macromedia:mms.cfg is already open." number -49 from file "Macintosh HD:Library:Application Support:Macromedia:mms.cfg"
    When i tried to close the ofile am getting this eror:
    on openAFile(filepath)
        try
            set fp to open for access filepath with write permission
        on error errstr number errNum
            if errNum = -49 then
                close access filepath
                set fp to open for access filepath with write permission
            else
                display dialog errstr
                return false
            end if
        end try
        return fp
    end openAFile
    set pointer to openAFile("Macintosh HD:Library:Application Support:Macromedia:mms.cfg"
    set fileContents to read pointer
    Error
    "Can’t make \"Macintosh HD:Library:Application Support:Macromedia:mms.cfg\" into type file." number -1700 from "Macintosh HD:Library:Application Support:Macromedia:mms.cfg" to file

    if you're using HFS (colon-delimited) file paths, then you always have to prefix it with the file or alias keywords.  If you don't, Applescript will see it as a plain sting rather than a file path.  You can use POSIX (slash-delimited) paths directly.  examples:
    set filepath to POSIX path of file "Macintosh HD:Library:Application Support:Macromedia:mms.cfg"
    set fp to open for access alias filePath with write permission

  • How to get dates & tags written into file

    I have approx 20,000 images that have been scanned & then imported into PSE Organizer.  I have updated the date fields via organizer with a yr for the images which is working fine within PSE but it appears that this date is not written to the file itself... that is the created date is staying the same.  I have also updated tags & properties... but created date is staying the same.
    Does anyone know of a way to get this date into the created field?
    Similarly... I would like to get tags moved into the notes field in the record.  Does anyone have any strategy for doing this?
    I am continuing to have severe problems using PSE organizer (the frequent system hangs) and must now find a way of salvaging the many many hundreds of hours I have put into PSE.  I believed by updating properties & tags and getting yrs into date fields I would have something that I could import into other software... this is not turning out to be the case.
    Any help?
    Thanks
    GeneMark

    In order for people to attempt to help you, I recommend that you post
    -- your version of Photoshop Elements
    -- what is the format of those scanned photos -- for example, often people save their scanned photos as TIFFs (.tif) or as JPEGs (.jpg)
    -- also post the operating system on that computer (for example, is it Windows 7 ?)
    My general comments are :
    My experience with the change date command of the Organizer, is that
    -- it modified the date within the metadata of the photo file. I do not believe that it modifies the Date Created field of the file as known by the operating system.
    -- people have reported some problems with partial dates in various versions of the Organizer, so I forced my dates to be complete dates even if I had to guess at the month and day
    Most (maybe all) versions of the Organizer have a command under the File menu for writing Keyword Tags, etc to the photo file for types of files which can support this function.  You could test this command on one photo file and then check if it gives you the results in the specific field that you wish. (Be aware that the Organizer does not provide a means for removing these tags from the photo file.)
    Here are links to read additional info about dates and partial dates --
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_All_the_different
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#Unknown_month_day_and_time
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Date/times_of_files

  • How to write XML into file using JSP

    Hello,
    I am parsing a XML file, then updating some of it content and trying to write back the updated file into the same location as an xml document but its not happening correctly....it gets written like this.
    &_lt;db_name&_gt;dataext&_lt;/db_name&_gt;
    Here is my code......somebody please advise
    <%@ page contentType="text/html"%>
    <%@ page import="java.io.*,
                        java.util.*,
                        org.jdom.*,
                        org.jdom.input.SAXBuilder,
                        org.jdom.output.*" %>
    <%
    String xml_file = "webapps/root/web-inf/admin.xml";
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    Document l_doc = builder.build(new File(xml_file));
    Element root = l_doc.getRootElement();
    List admin = root.getChildren("db");
    Iterator loop = admin.iterator();
    while ( loop.hasNext()) {
         Element ele = (Element)loop.next();
         String state = ele.getChild("state").getText();
         String name = ele.getChild("db_name").getText();
         String ip = ele.getChild("db_ip").getText();
         if(state.equals("Florida")) {
              ele.getChild("db_ip").setText("209.11.111.1");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    root.setText(ls_result);
    ls_result = l_format.outputString(l_doc);
    %>
    <html><head><title></title></head>
    <body>
    <%
         try {
              FileOutputStream ostream = new FileOutputStream("c:\\admin.xml");
              ObjectOutputStream p = new ObjectOutputStream(ostream);
              p.writeObject(ls_result);
              p.flush();
              ostream.close();
         catch(Exception e) {
              out.println(e.toString());
    %>
    </body>
    </html>     

    thanks amgandhi.....
    I found a solution for it, courtesy of this site:
    http://www.topxml.com/tutorials/main.asp?id=jdom&page=15
    <-********************************************************->
    import org.jdom.output.XMLOutputter;
    import org.jdom.*;
    import java.io.*;
    import java.util.*;
    // Write a program that creates document with a
    // single root element. Add a comment to the
    // root element, and assign the document's XML to
    // a local string. Finally, write the String to
    // System.out, and write the document to a text file.
    // For bonus points, allow the user to specify the
    // file name on the command line.
    public class ws3
    public static void main(String[] args)
    String filename = "default.xml";
    if(args.length > 0) filename = args[0];
    Element root = new Element("simple");
    Document doc = new Document(root);
    Comment cmt = new Comment("A bare document!");
    root.addContent(cmt);
    XMLOutputter outputter = new XMLOutputter(" ",
    true);
    String xml = outputter.outputString(doc);
    System.out.println(xml);
    writeToFile(filename, doc);
    private static void writeToFile(String fname,
    Document doc)
    try {
    FileOutputStream out =
    new FileOutputStream(fname);
    XMLOutputter serializer =
    new XMLOutputter(" ", true);
    serializer.output(doc, out);
    out.flush();
    out.close();
    catch (IOException e) {
    System.err.println(e);
    }

  • Storing a voice into file using RTP

    Hello every body
    Can I store the voice Conversation which transmitted between two end points?
    Im using AVtransmit and AVReceive for transmitting and Receiving. I want to store the voice in to a file. is it possibe? kindly provide me the code if
    Thanking you in advancly
    Sreenath Kulkarni

    Now, Storing a Blob into Database from a JTextArea or any text components becomes easy with the SerialBlob class( javax.sql.rowset.serial.SerialBlob - JDK 1.5).
    For eg..
    For Storing a Blob to Database
    pstmt.setBlob(1,new  SerialBlob(jtextArea.getText().getBytes()));For Retrieving a Blob to JTextArea
    SerialBlob sblob = new SerialBlob(rs.getBlob("FieldName"));
    jTextArea.setText(new String(sblob.getBytes(1, (int)sblob.length())));Hope this serves this problem well.
    Regards,
    R.Amirdha Gopal.

  • Appending into File using File Adapter

    Hi,
    I am trying to write to a file, whenever any data is getting inserted into Database table.
    My scenario is like this: I have created a database adapter which is polling for every new record inserted/updated. After this, I am trying to write the content into a file.
    The problem what I am facing is, I am not able to append the data what I am receiving from database(Whenever I am inseting new record). Everytime my previous content is getting deleted & a new entry is made into that file.
    Is there any way out, by which we can append to a file whenever any new entry is coming into database.
    Any possible solution on this..
    Thanks in advance...
    Abhi..

    In order to achieve this follow the steps given below:
    1) Open pc.properties located at C:\[BPEL HOME]\integration\orabpel\system\services\config
    Set oracle.tip.adapter.file.numProcessorThreads=1
    2) Manually modify the interaction spec for the outbound file write and add an extra attribute-value pair as shown below
    <jca:operation
    LogicalDirectory="......"
    InteractionSpec="oracle.tip.adapter.file.outbound.FileInteractionSpec"
    FileNamingConvention="MyFinalFile.txt"
    NumberMessages="1"
    ElapsedTime="60"
    FileSize="1024000"
    OpaqueSchema="false"
    Append="true">
    The Append="true" causes MyFinalFile.txt to be appended to everytime the fileadapter is invoked on the outbound.
    Also notice that the FileNamingConvention does not have a dynamic part; it has to be a static file name.

  • Now, i can put blob into file, but ...............

    Hi
    At first, Thanks Lawrence Guros , from his hint, i did it(put blob into file) using JDBC.
    In addition i find that, using sql*loader "load" a file(150Mb) into database ,need 3 minutes . Using jdbc "take out" the same file ,need 1.5 minutes. Does jdbc is better than sql*loader ?
    So that i tried to load a file using jdbc, i got a problem.......
    My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
    a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
    // Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    // Statement stmt2=null;
    // Resultset rs2;
    //opa1 is the blob data
    void saveBlobTableToDisk(Connection con) {
    try {
    stmt2=con.createStatement();
    sqlStr2="SELECT * FROM emp3 where id=1004";
    rs2=stmt2.executeQuery(sqlStr2);
    while (rs2.next()) {
    Blob aBlob=rs2.getBlob("opa1");
    i got the exception :
    " null
    java.lang.UnsupportedOperationException
         at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
         at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
         at test3.Frame1.<init>(Frame1.java:26)
         at test3.Application1.<init>(Application1.java:5)
         at test3.Application1.main(Application1.java:8) "
    and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
    Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
    I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
    Or i must install oracle jdbc driver ?
    Thanks.
    D.T.

    I would think that SQl*Loader would be faster, but you may want to ask in the SQL*Loader forum for more expert advice.
    I can't tell from your code what you are doing. Is the "opa1" column a image folumn or a straight blob? Which line is 48?
    I only have experience with the oracle JDBC driver. You should be able to use it with jBuilder.
    there is an example of loading an image into an ordimage type at:
    http://otn.oracle.com/training/products/intermedia/media_dev_kit/java_samples_readme.html
    and a more extensive web based photo album:
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/intermedia_servlet_jsp_samples/imedia_servlet_jsp_readme.htm
    And for bulk loading:
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/avi_bulk_loading.html

  • How to find the number of data items in a file written with ArryToFile function?

    I have written an array of number in 2 column groups to a file using the LabWindows/CVI function ArrayToFile...Now if I want to read the file with FileToArray Function then how do I know the number of items in the file. during the write time I know how many array items to write. but suppose I want the file to read at some later time then How to find the number of items in the file,So that I can read the exact number and present it. Thanks to all
    If you are young work to Learn, not to earn.
    Solved!
    Go to Solution.

    What about:
    OpenFile ( your file );
    cnt = 0;
    while ((br = ReadLine ( ... )) != -2) {
    if (br == -1) {
    // I/O error: handle it!
    break;
    cnt++;
    CloseFile ( ... );
    There are some ways to improve performance of this code, but if you are not reading thousands of lines it's quite fast.
    After this part you can dimension the array to pass to FileToArray... unless you want to read it yourself since you already have it open!
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Setting Font for converting multiple text files into PDF using VB 6.0

    Dear All,
    Am converting multiple text files into PDF using VB6.0. Currently, am unable to control the font face and size for the generated files. Below is the procedure am using for each file;
    Public Sub proc_convert_to_PDF(srcFilename As String, destFilename As String)
    Dim p_AcroApp As CAcroApp
    Dim p_VDoc As CAcroAVDoc
    Dim p_DDoc As CAcroPDDoc
    Dim IsOk As Boolean
    Set p_AcroApp = CreateObject("AcroExch.App")
    Set p_VDoc = CreateObject("AcroExch.AVDoc")
    Call p_VDoc.Open(srcFilename, "")
    Set p_VDoc = p_AcroApp.GetActiveDoc
    If p_VDoc.IsValid Then
    Set p_DDoc = p_VDoc.GetPDDoc
    ' Fill in pdf properties.
    p_DDoc.SetInfo "Title", Format(Date, "dd-mm-yyy")
    p_DDoc.SetInfo "Subject", srcFilename
    If p_DDoc.Save(1 Or 4 Or 32, destFilename) <> True Then
    MsgBox "Failed to save " & srcFilename
    End If
    p_DDoc.Close
    End If
    'Close the PDF
    p_VDoc.Close True
    p_AcroApp.Exit
    'Clear Variables
    Set p_DDoc = Nothing
    Set p_VDoc = Nothing
    Set p_AcroApp = Nothing
    End Sub
    What I need;
    1) to be able to set the font face of the destination file ( destFilename)
    2) to be able to set the font size of the destination file ( destFilename)
    Am using Adobe Acrobat 7.0 Type Library
    Kindly Help.
    Thanks in advance

    We didn't say it doesn't work. We said it isn't supported.
    There are a number of other ways to make a PDF. The one which would
    give the most control is if your application directly printed to GDI,
    controlling the font directly. This could print to Adobe PDF.
    You could look for an application that gives control of font for
    printing.
    You could use a text-to-PostScript system and distill the result. You
    could even look for a non-Adobe text-to-PDF.
    Working in the unsupported and dangerous world you chose, the font
    size for text conversion is set (and this is very bad design from
    Adobe) in the settings for Create PDF > From Web Page. There is no API
    to this.
    Aandi Inston

  • Uploading into database table from text file using tab (GUI_UPLOAD)

    i have small doubt
    i have 3 fiels in text file using tab as separator
    i need to update into database table 'ZABPSP_01'
    from 's.txt' located in local disk.
    My code is below.
    Please let me know the correction.
    Awaiting for ur response.
    Thanks in advance
    REPORT  ZABPSPPRG_02.
    TABLES: LFA1,MARA,KNA1,ZABPSP_01.
    DATA:  begin of itab occurs 0,
    IKUNNR type zabpsp_01-kunnr,
    IMATNR type zabpsp_01-matnr,
    IADRNR type zabpsp_01-adrnr.
    DATA:END OF ITAB.
    DATA: FILENAME1 TYPE STRING.
    FILENAME1 = 'C:/s.txt'.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = FILENAME1
      FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                     = itab.
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF sy-subrc EQ 0.
    zabpsp_01-kunnr = ITAB-IKUNNR.
    zabpsp_01-matnr = ITAB-IMATNR.
    zabpsp_01-adrnr = ITAB-IADRNR.
    WRITE : / ' UPLOAD SUCCESS ' .
    ENDIF.
    \[subject changed, don't write everything in upper case!\]
    Edited by: Jan Stallkamp on Aug 6, 2008 2:39 PM

    Hi,
    After upload modify the code like below. Also change the file name as some one suggested already. If u are still facing problems then check in debug mode what is happening after FM call.
    CALL GUI_UPLOAD FM.
    IF sy-subrc EQ 0
    IF NOT itab[] IS INITIAL.
    MODIFY ZABPSP_01 FROM TABLE itab.
    WRITE : / ' UPLOAD SUCCESS ' .
    ELSE.
    WRITE 'No data in file'.
    ENDIF.
    ELSE.
    WRITE 'Upload failure'.
    ENDIF.
    Thanks,
    Vinod.

  • How to split a big file into several small files using XI

    Hi,
    Is there any way to split a huge file into small files using XI.
    Thanks
    Mukesh

    There is a how to guide for using file adapters, an "sdn search" will get you the document.
    Based on that , read a file into XI, Use strings to store the file content and do the split
    here is some code to get you started
    ===========
    Pseudocode:
    ===========
    // This can be passed in - however many output files to which the source is split
    numOutputFiles = 5;
    // Create the same number of filehandles as numOutputFiles specifies
    open file1, file2, file3, file4, file5;
    // Create an Array to hold the references to those filehandles
    Array[5] fileHandles = {file1, file2, file3, file5, file5};
    // Initialize a loop counter
    int loopCounter = 0;
    // a temporary holder to "point" the output stream to the correct output file
    File currentOutputFile = null;
    // loop through your input file
    while (sourceFile.nextLine != null)
    loopCounter++;
    if (loopCounter == (numOutputFiles +1) // you've reached 5, loop back
    loopCounter = 1;
    currentOutputFile = fileHandles[loopCounter]; // gets the output file at that index of the array
    currentOutputFile.write(sourceFile.nextLine);
    regards
    krishna

  • How can I split a pdf file into smaller files using Acrobat XI

    How can I split a pdf file into smaller files using Acrobat XI?

    Hi laforcej
    Open the PDF In Acrobat ...
    Go to Tools -> Pages -> Extract
    Now Select the Page Number you Want to Extract and Save them

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

Maybe you are looking for

  • Zen MicroPhoto Problems! PLease,I Really Need Help!!

    hello everybody, i bought a zen microphoto 4GB in June and it worked perfectly until two days ago. I turned it on like i do everyday to listen to music on my way to school. i downloaded the newest version of firmware onto it'sthree days before. when

  • Having trouble using a Canon Vixia HG20 HD video cam in Adobe Connect Pro. Any suggestions?

    Anyway to disable the builtin isight camera and let the Canon Vixia HG20 be the default when it's connected ? I have a Macbook Pro with OS 10.9.4. it doesn't recognize the Canon Vixia HG20. Only the built-in isight camera is used by ACP. I'd really a

  • Create FLV Video Gallery In Dreamweaver?

    Hi and thanks in advance to those who can offer some advice. I'd like to create a Flash Video Gallery with thumbnails that link to video and play on the page.  Only one video screen.  Something like Youtube. I'm new to Dreamweaver and have built ever

  • Cannot fill a rectangular shape with Color

    HI, I cannot fill a rectangular shape with color. I know it was working at some point. I checked the ID help, and did a search here with no results. I have the tool bar set correctly I think (see below). The object isn't behind other objects either,

  • Can you turn on/off aliases wih iCloud

    With iCloud can you turn on/off email aliases you have created in .mac and mobileme? If you can't, can you delete the aliases in iCloud that you cannnot now delete in mobileme?