Re_ Read Txt or Htm file through developer9i

Hi, anyone can help me??
I use Devloper9i AS, oracle 9i, Winxp
I have a (data.txt) text file and data.htm (html file) as well which contains climate data for example
OLBA  25/23....
which means temperature is 25 and humidity 23
I already created a table climate table having two fields: temperature and humidity filed
My question I need a PLSQL  procedure or function   which open these two file(data.txt,data.html) , read their contain(temperature , humidity ), to finally insert them into my table climate.
Thank You for any support.

First, please do not duplicate postings.  It will not help you get feedback any faster.  Second, as you will see me mention often, it is very important that you always include your product versions when posting.  Each product version may have different behavior or restrictions therefore letting us know what you are using will help us to provide you accurate information the first time.
As for your question, I will assume you are using Forms (like I said, you didn't provide versions or product information).  Refer to the Builder Online Help for TEXT_IO.  This built-in allows you to read, write, or update text based files.  If your application is client/server based and not running as a web application then TEXT_IO will do what you requested.  If your application is web based and the files you want to read are on the client machine then you will need to write a java bean to perform the task.  If you upgrade to a current version (e.g. 11.1.2), you can use WebUtil for reading/writing files on the client machine.

Similar Messages

  • Can't read txt or pdf files?

    I've been unsuccessfully trying to view these two most popular text files on my iPod touch. I thought that considering the size of the screen as well as ebook capability, formats like pdf and txt would surely be supported. Is it just me? Maybe I can't find the right option in the itunes or ipod itself, but itunes says ipod can't read this kind of file, while ipod's safari says it can't read the file when I try to download a .txt via Wi-Fi. What am I doing wrong? Do I need some additional software for this?

    I answered too soon!
    I didn't read your question fully.
    Your question should be: How do I get pdf and text files onto my iPod touch to read. I've tried iTunes and it does not work.
    The answer I gave is correct and will solve your problem.
    - email it to yourself and read i Mail (not the best solution).
    - Download the free version of EverNote from the App store and download the version for your computer, Drag the txt or pdf into a new note in EverNote on your desktop and sync to the cloud (as they say) and open the EverNote app on your iPod and sync
    - Do the same with SugarSync or DropBox (you need desktop and iPod versions of both, both free)
    - text files can be put in memos in Outlook and synced with Notes on your iPod
    There are other apps -- Phoneview, for example -- that will also help.
    I'd use... wait. I DO use .. EverNote
    -fred

  • Problem with reading text from .DOC files through java and POI

    I have used a jar file "poi-scratchpad-3.2-FINAL-20081019.jar" and "poi-3.2-FINAL.jar" to read text from a .DOC file. I used the "getParagraphText()" function of the class "org.apache.poi.hwpf.extractor.WordExtractor" to get the text.
    I am able to get the text in the .DOC file but along with that i am getting the following messages/warnings
    Current policy properties
    *     thread.thread_num_limited: true*
    *     file.write.state: disabled*
    *     net.connect_ex_dom_list:*
    *     mmc.sess_cab_act.block_unsigned: false*
    *     mmc.sess_cab_act.action: validate*
    *     mmc.sess_pe_act.block_blacklisted: false*
    *     mmc.sess_pe_act.block_invalid: true*
    *     jscan.sess_applet_act.stub_out_blocked_applet: true*
    *     file.destructive.in_list:*
    *     jscan.sess_applet_act.block_all: false*
    *     file.write.in_list:*
    *     file.nondestructive.in_list:*
    *     window.num_limited: true*
    *     file.read.state: disabled*
    *     jscan.session.origin_uri: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/poi/poi/3.2-FINAL/poi-3.2-FINAL.jar*
    *     file.nondestructive.state: disabled*
    *     jscan.session.user_ipaddr: 10.136.64.153*
    *     net.connect_other: false*
    *     thread.thread_num_max: 8*
    *     file.destructive.ex_list:*
    *     file.nondestructive.ex_list:*
    *     file.write.ex_list:*
    *     jscan.sess_applet_act.sig_invalid: block*
    *     file.read.in_list:*
    *     mmc.sess_cab_act.block_invalid: true*
    *     jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5*
    *     mmc.sess_pe_act.action: validate*
    *     thread.threadgroup_create: false*
    *     net.connect_in_dom_list:*
    *     net.bind_enable: false*
    *     jscan.sess_applet_act.sig_trusted: pass*
    *     jscan.session.user_name: 10.166.64.201*
    *     jscan.session.user_hostname:*
    *     file.read.ex_list:*
    *     jscan.sess_applet_act.sig_blacklisted: block*
    *     jscan.session.daemon_protocol: http*
    *     net.connect_src: true*
    *     jscan.sess_applet_act.unsigned: instrument*
    *     mmc.sess_pe_act.block_unsigned: false*
    *     file.destructive.state: disabled*
    *     mmc.sess_cab_act.block_blacklisted: true*
    *     window.num_max: 5*
    Below the above messages/warnings the data is getting printed. Only the text part of the data is retrieved not the fonts, styles and bullets etc.
    Can anyone explain me why I am getting above warnings and how can I remove them. Is it possible to fetch the text depending on delimiters.
    Thanks in advance,
    Tiijnar
    Edited by: tiijnar on May 21, 2009 2:45 AM

    The jar files which were used are downloaded from http://jarfinder.com. Those jars created the problem of displaying those messages on console. I downloaded APIs from apache.org and used them in my application. Now my application is running good.
    Tiijnar

  • Read SSH (Unix) dynamic file through Java code

    Hi,
    I am trying to create a java code which should read the dynamically changing content in the unix(SSH) system.
    Could you please tell me which is the best way to create the above requirement.
    Thanks in advance...

    corlettk wrote:
    but there are perl libraries... and (I was dumbfounded) a java-embedded-in-perl compiler. I feel a mashup delegate layer coming on.JCraft's JSch is, however, IMHO, a very good, flexible, and reliable implementation of SSH2 protocol (OpenSSH key formats). It allows your program to become an SSH client.
    Edit: And to tell you the truth, the Perl Net::SSH module is simply a wrapper around OpenSSH's libraries, and the Net::SSH::Perl Module (which is complete Perl although many of the Encryption modules need to be compiled, at least on Unix) are much more complicated to get installed, if not necessarily used, than JSch is.
    Edit Again: Although knowing the OP's history, I very much doubt his ability to implement either solution. ;-)

  • Getting Page not found while trying to read ws-addressing.xsd file in IE

    Hi All,
    Here I am creating dynamic partner link to call OSB service in my BPEL process. I wan make it dynamic to change run time server address and port numbers. Here I am getting Error (Error occurred reading inline schemas) while creating reference variable as per BPEL cook book. To resolve that exception, I have created /bpel/system/xmllib/ folders in SOA 11g and placed ws-addressing.xsd file. After I am trying to import in BPEL process, still I am getting same Exception.
    Even I tried to read ws-addressing.xsd file through IE browser (http://Host:Port/orabpel/xmllib/ws-addressing.xsd) after placing that directory(/bpel/system/xmllib/). My SOA server and everything is running.
    Thanks in advance.
    mally

    Paul,
    You can try the suggestion in this thread on the XE forum:
    Re: Problem with importing HTML DB applications
    It also shows how to turn on logging in the XE web server.

  • Would Like to Be Able to load and Read TXT or PDF on my 8800

    Hello,
    I would like to be able to load and read TXT or PDF files on my 8800.  How do I go about doing it?  Do I need third party software?  If so what do y'all recommend?
    Thanks in advance

    Dave_nguyen wrote:
    I would like to save a MS documentation, MS wordpad file into the BB MemoPad location.
    1. I could not modify the path so I could save into BB MemoPad.
    2. Is there a utility s/w so I could save/download the big file(20K to 200K)  directly into BB MemoPad. It will take long time to download from email.
    Thanks
    David
    1.  Can't do that.
    2.  Get memory card and save the document to it from your PC. When the memory card is in the BlackBerry you can access it just like a USB thumb drive via Windows.

  • Read data out of htm-file

    dear guys
    i got the problem that i want to get some data out of a htm-file. that is why i have to choose a format that is more "universal" than an excel-file
    the problem is i got a excel-file and save it as htm/html - file because i got a excel-book with more than 20 linked spreadsheets in it and there is
    no other format in excel that can handle this linking by being universal enough to start my program on some other pc's
    so i dont want to manage it in excel because there are usually some version-conflicts using the original program of the project i am working on.
    so is it basically possible to get data out of a htm-file and if the answer is yes how....??

    Tobias,
    there could be several ways to solve your request.
    As far as i understand you like to create an offline analysis of your data. Datasource is excel.
    If you can switch to "online analysis", you could use ActiveX to fetch data from excel and perharps write results back to it from LV.
    If you stay offline, you have to choose a mechanic which works out for you. Since it seems to me that the file format is kind of given, you have to go through the analysis regardless of its effort (which can get very ugly....).
    In any case, you can view a file as a stream of data. The only question is how this stream looks like. This defines how you have to interpret the stream. ASCII-files can be interpreted very easy since you can use all the nice stringfunction (search and so on). Disadvantage is that these mechanics are slow. Binary files are faster, but you have to know very good how the file was created.
    Again, in any case, you have to know where the data are....
    So i fear that you have to go the whole way and analyse the files to know where to search for your content.....
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Can we read a ZIP file through ESB file adapter?

    Hi,
    Is it possible to read a ZIP file from a specified locaiton either through a FTP adapter or file adapter as a opaque element and place it in another specified locaiton?
    So far the available options are to read a txt, csv, fixed length or cobol file.
    I tried to create a ESB reading ZIP file and place it in another locaiton. but it was not reading the ZIP file.
    Is it first possible for the ESB to read the ZIP file? if so then is there any specific configuratuion that we have to do for it to work?

    how can we read a MSWORD file through java?You can read it like any other file using FileInputStream
    and similar.
    Howvere, if you want do do something with it, like display
    it, you have a problem. AFAIK Microsoft do not release
    information about their document formats, and i have not
    seen a .doc viewer for java.

  • Read an xml file through file adapter?

    How do i read an xml file through file adapter?

    Hi,
      This is pretty straight forward.
    Just configure the sender file adapter without any file content conversions.
    Read this for more information:
    http://help.sap.com/saphelp_nw04/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm
    Regards,
    Ravi

  • Reading a file through a telnet socket

    Hi,
    I would like to be able to read the contents of a file once
    I've logged on to the server. I have logged in successfully.
    If I use
    BufferedReader isr = new BufferedReader(new FileReader("path/code.txt"));
    I get an IOException saying it can't find the file.
    Am I supposed to use the socket (socket.getInputStream()) with a reader class to indicate that the file I want to read is through the socket and not on my desktop? If so how do I do it?
    TIA
    Lynda

    You have to get the server process to open the file on the server machine and have it pass the file back through the socket. Just creating a socket from your client machine to a server machine is not in itself enough to see the file system.
    For example FTP works like this (at a conceptual level)
    server: listening on port 21
    client: connect to server on port 21& supply username password
    server: username OK
    client: GET me file called code.txt
    server: open file code.txt on local file system, pass the bytes through the socket
    client: read the bytes coming through the sockets and place them in a file called code.txt on the local FS
    client: terminate connection
    hopefully this will point you in the right direction

  • Read .txt file of numbers and draw

    Hello.
    I am trying to utlize BufferedReader and g.drawline to read numbers from a text file and output to the screen as a "line".
    I know I still need a while loop and some error checking, but, am having trouble finishing the more 'basic' portion of the code.
    The GUI class is already taken care of. I am just trying to open the file, read, turn to int, produce lines, then close file.
    I have commented out some of the code that was provided with the assignment.
    Any help would be appreciated.
    Thank you.
    import javax.swing.*;
    import java.awt.*;
    * DrawingPanel creates a panel used for drawing
    * a map
    * Numbers stored in text file, usa.txt.
    * one number per line.  Read each number
    * create a map on screen. GUI provided in a
    * 2nd class.
    public class DrawingPanel extends JPanel {
         /** Graphics object used for drawing on the panel */                           
         private Graphics g;                  
         /** Tells if it is time to draw */
         private boolean timeToDrawPath;
         /** The filename of the hurricane path */
                                  //private String pathFile; 
         private String usa.txt;
         * Creates a new, white DrawingPanel for drawing the maps
         public DrawingPanel() {
              setBackground(Color.white);
              this.timeToDrawPath = false;
                                  //this.pathFile = null;
              this.usa.txt = null;
         * This method is called automatically by Java.  There will NEVER
         * be a direct call to paint() anywhere in the code.  Anytime that we
         * need to update what is drawn on the screen, we call repaint().
         * @param grph The graphics window to paint
         public void paint(Graphics grph) {
              g = grph;
              super.paint(g);
              processUSA();
              if (timeToDrawPath){
                   drawPath();
         * Reads the USA coastline coordinates from a file and draws the path
         * to the panel
         public void processUSA( ) {
                        //just an example of how to draw a single
                        //line segment from (50,50) to (200,200)
                        //g.drawLine( 300, 50, 200, 200);
         //Insert the while loop here??
         //Include the parse.Int statement
         //Open the file
         String inFile = ("usa.txt");
         FileReader fileReader = new FileReader (inFile);
                   //BufferedReader bufReader = newBufferedReader (fileReader);
         BufferedReader bufReader=newBufferedReader (new fileReader ("usa.txt"));
                        //Insert beginning of while loop here????
         //read data from the file
         String str=bufReader.readLine();
         g.drawLine(x1,y1,x2,y2);
         }

    Yep, you are right in deciding the positioning of the while loop.
    But the folly you are committing is while creating object of BufferedReader ... It is to be created by passing to the constructor, the reference of the FileReader object you have created.
    so the line of code shud look like ...
    BufferedReader bufReader = new BufferedReader(FileReaderObject);
    And then you can go ahead with readLine() as per your requirement in the while loop.

  • How do I read txt file and add items to dropdownlist or checkbox

    I want to add items to a dropdown or check box by reading from a text file(and select one of them). (I donot use any table or database). The list of items is sometimes upto 20MB and hence cannot populate using session bean.I want items to be added to either checkbox or listbox during a button action. I have done this for textarea but unable so far to acheive for checkbox or listbox. I use following code which does not work:
    public String button3_action() {       
    try{           
    FileReader fr = new FileReader "F:/CreatorProjects/checkboxtst.prs");
    BufferedReader br = new BufferedReader(fr);
    String s;
    while((s=br.readLine())!=null) {
    dropdown1.setValue(s);
    br.close();
    fr.close();
    }catch(Exception e) {
    e.printStackTrace();
    return null;
    I know I cant just transplant textarea code for dropdownlist or checkbox.
    Any help is greatly appreciated.
    Thanks.
    Dr.AM.Mohan Rao

    I am able to read from txt file to a listbox if i write in sessionsbean1:
    try{
    FileReader fr = new FileReader("F:/CreatorProjects/checkboxtst.prs");
    BufferedReader br = new BufferedReader(fr);
    String s1="";
    String s="";
    while((s=br.readLine())!=null) {
    s1 = s1+s;
    s1= s1+"\n";
    disOptions = new com.sun.rave.web.ui.model.Option[] {              
    new Option(s1,s1)};
    diseases = new String[] {};
    fr.close();
    br.close();
    catch(Exception e) {
    e.printStackTrace();
    But I get all data in one line!! if I click submit button text area gets all. How to display items in each line????Please help...
    Dr.AM. Mohan Rao

  • I am trying to get help with WMPlayer tech support Adobe Reader cant open wmpsupport.htm files why?

    i am trying to get help with WMPlayer tech support Adobe Reader cant open wmpsupport.htm files why?

    Adobe Reader opens PDF files, nothing else.

  • Reading .txt file from remote using abap?

    Hi,
    I must read a .txt file from remote server automatically.
    I have path and name of .txt file. Remote system asks username and password.
    In abap is it possible to give username and password for reading .txt from remote server?
    Remote server and sap server are not in same domain.
    How can i do that?
    Thanks.

    Hi Cemil ,
      You can try using the FM RZL_READ_FILE_REMOTE_SH.
    This is an option i found ,  but i have really not tried it out .
    Regadrs
    Arun

  • I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file from PDF or to PDF, I get the message "An error occured while trying to access the service.  What do I need to do to access the service paid for?

    I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file either to PDF or from PDF, I get the error message, "An error occurred while trying to access the service".  What do I need to do to get access to the service I have paid for?

    Hi DeaconTomColorado,
    Please see "Error occurred when trying to access this service" when logging on to Acrobat.com.
    Adobe has just released an update to Adobe Reader, so if you're accessing the service via Reader, please let us know whether the update helps resolve the issue.
    Best,
    Sara

Maybe you are looking for

  • A recent movie purchased on iTunes and downloaded to my computer does not show up on apple tv.

    I routinely buy movies on iTunes and they usually show up on apple tv automatically but the most recent purchase is not there. Im not sure why.

  • I'm confused...think the MBA had anything to do with this?

    Hiya, All righty...well, it's been about a week since I've had my MBA, and I have to say, this computer is awesome. However, I've had this very odd Internet problem and I'm not sure if it's the MBA'S fault--or, rather, my fault, given the way I used

  • Connected macbook pro to rca tv and not working

    i have a late 2011 macbook pro. i've tried connecting it up to my old tv by.. minidisplay port -> vga -> tv/pc converter to RCA. i get a signal on my macbook pro picking up my tv but on the tv i get tons of moving/flickering lines sometimes with a sl

  • Query Related to Oracle Inventory

    I have to prepare a report in Oracle Inventory (R12) where I have to extract below fields 1. Inventory Quantity Sold for previous days and weekly basis etc 2. Quantity Physically on a shelf at a distribution center but commited to end customer 3. Qua

  • Dequeue Messages queued by caprture process

    RDBMS Version: 10.1.0.4 Operating System and Version: WINDOWS 2003 SERVER Error Number (if applicable): Product (i.e. SQL*Loader, Import, etc.): Oracle Streams Hi, Can I do the following. I had set up couple of databases for replication using ORACLE