Database to Text file

I want code for storing Database content to text file formate as well as Text file to Database.Plese help me

why don't you just set up some type of ODBC to a text file? Or to Access or Excel, and then export it?

Similar Messages

  • Addressing a database or text file

    Does anybody know what would be the soloution of addressing a database or text file and creating a folder for each entry - I work with 200 people who all need a folder to place work but obviously wanna sus a short cut!
    Help!

    Do you mean you want to extract a folder path from lines in a text file and create a folder from that path?
    You would have to paste a few lines from the file.

  • Save Appleworks Database as Text File

    I'm trying to save an Appleworks 6 database as a text file so that I can import into Microsoft Access on my PC. When I go to file>save as in Appleworks it only lists Appleworks 6, 5 and ClarisWorks as file format options. Can anyone tell me how to do this? Any tips on how to convert this to PC Access database would be awesome as well. Thanks!

    Welcome to Apple Discussions
    The "has been deleted" error isn't actually related to saving. AppleWorks doesn't "understand" OS X well & can give some strange error messages. Although I've only gotten this message when I've had AppleWorks 6 open in both Classic & OS X at the same time on previous Macs, others get it like you with no specific cause. It usually is fixed by using Disk Utility to repair permissions and deleting the AppleWorks 6 preferences. See my user tip, AppleWorks has stopped working correctly, for more on the preferences. Neither permissions or preferences are replaced or fixed with installation.
    It would have been best for you to have started a new topic as your problem isn't not having the option to save as text, but not being able to save in any format.

  • Database or text file

    Since I was able to get my first question answered so quicky (thanks again), I wonder if I could get an opinion from the experienced programmers here.
    I am creating a computer forensics application to verify file signatures found in the header , to the extension. For example, a .pdf file has a hex file signature of 25 50 44 46, a .com file has a signature of 4d 5a, etc. Each file type has it's own file signature.
    My question is two-fold. First, what would be considered an optimal means of storing and accessing the data for each file type? Second, what would be the optimal means for adding new data?
    With my limited knowledge, I have two means avaialable. One would be to create a text file with the necessary information. Then all I would need to do is find the correct string, and parse the information necessary to make the correction. My other thought was to make an individual class for each type of file, and add classes as necessary. Since each type of file has a differnt signature, and it's found in different places in the header, and even sometimes skips spaces, essentially each type has to be handled a little differently. Then I would just need to constructors to access the proper class.
    Any thoughts?

    database seems as too much for your problem, serarching the
    text file for each entry seems very resource/time consuming.
    I would propouse making a Hashtable with the extension
    as a key, and the signature as the value, and then having a
    loadHashtable and a saveHashtable method so you would just have to
    create the hashtable when you start your app and save it when you end it:
    class FileHeader{
    String extension,hex_signature;
    public FileHeader(String ext,String hex_sig){
    extension = ext;
    hex_sig = hex_signature;
    //other methods
    public String getExtension(){
    return extension;
    public String getSignature(){
    return hex_signature;
    public class MyApp{
    java.util.Hashtable files_hash;
    public MyApp(){
    files_hash=new java.util.Hashtable();
    loadHashtable();
    public void loadHashtable(){
    //load the hashtable with FileHeader objects containing every filetype
    public void saveHashtable(){
    //save all the extension,signature pairs in a file
    public boolean checkSignature(String extension,String proposed_signature){
    FileHeader file = (FileHeader) files_hash.get(extension);
    return file.getSignature().equals(proposed_signature);

  • How to add header and fooder in text file

    Hi,
    i have created simple application for generate report from database into text file.
    But i need to add header and fooder in text file. I dont know is there any API for adding these.
    Can anyone help me to create header and fooder in text file.
    the below text are needs to be print in the header
    name of the table :
    Recorder type :
    file creation time:
    the below text are needs to be print in the footer
    Recorder Number:
    Record Type;
    the actual code is
                           pst = con.prepareStatement("select REQUEST, DOMAIN_NAME, TRUNC(DATE_OF_CONFIGURATION) AS dateofConfig  FROM employee where id=300");
                               rs = pst.executeQuery();
                            while (rs.next()) {
                                 request = rs.getString("REQUEST");
                                    domain_name = rs.getString("DOMAIN_NAME");
                                    dateofconfig = rs.getString("dateofConfig");
                                    System.out.println(request + " " + domain_name + " " + dateofconfig);
                                   data.add(request + " " + domain_name + " " + dateofconfig);
                            System.out.println("before calling method");
                            writeToFile(data, "c:/Employee.txt");
                            System.out.println("file created successfull");
                            rs.close();
                            pst.close();
           private static void writeToFile(List list, String path) {
                    BufferedWriter out = null;
                    try {
                            File file = new File(path);
                            out = new BufferedWriter(new FileWriter(file, true));
                            for (Object obj : list) {
                                String s=  obj.toString(); 
                                 out.write(s);
                                    out.newLine();
                            out.close();
                    } catch (IOException e) {
    }Thanks
    Jasmin
    Edited by: user13836688 on Mar 21, 2011 4:06 AM
    Edited by: user13836688 on Mar 21, 2011 4:07 AM
    Edited by: user13836688 on Mar 21, 2011 4:08 AM

    user13836688 wrote:
    i have created simple application for generate report from database into text file.First off, when posting code, use &#91;code]...&#91;/code]. or '' tags, not '<code>'.
    But i need to add header and fooder in text file. I dont know is there any API for adding these.
    Can anyone help me to create header and fooder in text file.Well you plainly have the code to write the file contents; and furthermore your report seems to be contained in a List called 'data'. Why not just add the header and footer lines to it? I'd also suggest making 'data' a LinkedList. That way you can add the header afterwards with no performance hit, just in case the information it contains isn't available at the start of your report loop.
    Winston                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help needed in reading text file to database table

    Hello experts,
    i have to insert the values from the column of this text file and insert them in my database table.
    I have done a few file to table insertions but i'm having some trouble with this one.
    Any suggestions plz
    thanks
    liab_report      1.00                                                                                                                              Page: 1
    CDC:00537 / Mon Jun-21-2010                           LIABILITY REPORT                               Mon Jun-21-2010 22:06:26
    DRAW    1; SET    1;  November 7, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         701040.00          0.00     660146.00          0.00      40894.00    0.00          0.00
        Div3        1444128.00          0.00    1330056.00          0.00     114072.00    0.00          0.00
        Div4        4711900.00          0.00    3889700.00          0.00     822200.00    0.00          0.00
                    6857068.00          0.00    5879902.00          0.00     977166.00    0.00          0.00
    DRAW    2; SET    1;  November 14, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         817817.00          0.00     817817.00          0.00          0.00    0.00          0.00
        Div3        1687405.00          0.00    1611742.00          0.00      75663.00    0.00          0.00
        Div4        3402100.00          0.00    3034200.00          0.00     367900.00    0.00          0.00
                    5907322.00          0.00    5463759.00          0.00     443563.00    0.00          0.00
    DRAW    3; SET    1;  November 21, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         779933.00          0.00     769804.00          0.00      10129.00    0.00          0.00
        Div3        1605548.00          0.00    1525104.00          0.00      80444.00    0.00          0.00
        Div4        4891700.00          0.00    4256800.00          0.00     634000.00    0.00        900.00
                    7277181.00          0.00    6551708.00          0.00     724573.00    0.00        900.00

    Plz clarify whether u want to load text file as a file into database or value of this text file into database. If values are to be loaded from this text file, U can better format the text file and use SQL loader to load the file into database. By formatting the database, i mean remove the unnecessary headings and characters, kee only the values to be loaded idelimited by ' '(space) or ','(comma). Create a control file and load it into the target table.

  • Importing text file databases into address book

    I have a large csv formatted (all that easily allowed by my exporting database) that I want to import into addressbook. By the instructions this should work and so I diligently configured the "Text file import" screen to align the fields as they should be imported - and the sample entries shown in that window look and are configured exactly as they should be. However, when I click on the OK button in the "Text file import" window, I could not tell if it was importing one item or the thousands. But when I look at the address book it indicates that it imported all thousands of contacts. THE PROBLEM is that in the address book (which was previously essentially empty) the only items listed under "Names" is "No Name" (a huge number of them) and each one has NO other fields filled in. So it appears that nothing is importing despite that the Text file import screen shows everything set up correctly. Thoughts/help?

    My problem is the same as Roderick. Text File Import reads my file and shows me the data that it will import. I dilligently assign all of the appropriate columns and press "OK"...Nothing happens. Any ideas?

  • Importing text file into database

    Hi again,
    Could anyone give me any pointers on how to take a text file or csv file (or any other delimeted text file) and read the contents into java and then use the read in data to then insert the delimeted data into the table.
    i assume i have to read the delimeted data into a variable then parse the complete string with the delimeter and split the data up maybe in an array. Maybe this is completely wrong, im really unsure.
    any help would be greatly appreciated even a point in the right direction would be great :)
    kind regards.

    Well, atleast i dont know of a single method, which does this kind of nonhomogenous task!! Its not hard to impliment what you want-->
    //open the text file using FileInputStream & get the contents in a String variable
    //Tokenise it
    StringTokenizer st=new StringTokenizer(your_string_retrieved_from_file,delimiter);
    int i=0;
    while(st.hasMoreTokens())
    i++;
    //SQL Statement that inserts a string into database table(integer, varchar2)
    insert into test_table values(i,st.nextToken());
    Unless you are talking about putting the tokens as coloums in a single row, i dont find why this is a problem & if you are actually doing the above case, then you might wanna rethink your design

  • Cannot get text file to print in jtable. Using text file as a database

    Instead of doing JDBC i am using text file as database. I cant get data from text file to print into JTable when i click find button. Goal is to find a record and print that record only, but for now i am trying to print all the records. Once i get that i will change my code to search desired record and print it. when i click the find button nothing happens. Can you please take a look at my code, dbTest() method. thanks.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.util.*;
    import java.io.*;
    public class GUIdirectory extends JFrame
    implements ActionListener {
    // Define the components and the layout
    JLabel inputLabel_lastname = new JLabel("Last Name");
    JTextField inputText_lastname = new JTextField("Last Name",15);
    JLabel inputLabel_firstname = new JLabel("First Name");
    JTextField inputText_firstname = new JTextField(" ",15);
    JLabel inputLabel_middleinitial = new JLabel("Middle Initial");
    JTextField inputText_middleinitial = new JTextField(" ",4);
    JButton inputButton = new JButton("Find");
    JPanel inputLayout = new JPanel(new FlowLayout(FlowLayout.CENTER,5,5));
    JButton jButton1 = new JButton();
    //create a new table and scrollpane
    JTable dataTable = new JTable();
    JScrollPane dataTableScrollPane = new JScrollPane();
    public static void main(String args[]) {
    GUIdirectory gui = new GUIdirectory("Telephone Directory");
    gui.show();
    gui.pack();
    //TokenTest tt = new TokenTest();
    //gui.dbTest();
    public GUIdirectory(String Title) {
    super(Title);
    // Add ourselves as a listener for the window closing
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    exitWindow(1); }
    inputLabel_lastname.setLabelFor(inputText_lastname);
    inputText_lastname.setHorizontalAlignment(JTextField.RIGHT);
    inputText_lastname.addActionListener(this);
    inputLabel_firstname.setLabelFor(inputText_firstname);
    inputText_firstname.setHorizontalAlignment(JTextField.RIGHT);
    inputText_firstname.addActionListener(this);
    inputLabel_middleinitial.setLabelFor(inputText_middleinitial);
    inputText_middleinitial.setHorizontalAlignment(JTextField.RIGHT);
    inputText_middleinitial.addActionListener(this);
    inputButton.addActionListener(this);
    inputLayout.add(inputLabel_lastname);
    inputLayout.add(inputText_lastname);
    inputLayout.add(inputLabel_firstname);
    inputLayout.add(inputText_firstname);
    inputLayout.add(inputLabel_middleinitial);
    inputLayout.add(inputText_middleinitial);
    inputLayout.add(inputButton);
    getContentPane().setLayout(new BorderLayout(5,5));
    getContentPane().add("North",inputLayout);
    dataTableScrollPane.setViewportView(dataTable);
    getContentPane().add("Center",dataTableScrollPane);
    // A default method, primarily used for testing.
    public void actionPerformed(ActionEvent evt) {
    GUIdirectory gui = new GUIdirectory();
    gui.dbTest();
    void dbTest() {
    DataInputStream dis = null;
    String dbRecord = null;
    String hold;
    try {
    File f = new File("customer.txt");
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    dis = new DataInputStream(bis);
    Vector dataVector = new Vector();
    Vector headVector = new Vector(2);
    Vector row = new Vector();
    // read the record of the text database
    while ( (dbRecord = dis.readLine()) != null) {
    StringTokenizer st = new StringTokenizer(dbRecord, ",");
    while (st.hasMoreTokens()) {
    row.addElement(st.nextToken());
    System.out.println("Inside nested loop: " + row);
    System.out.println("inside loop: " + row);
    dataVector.addElement(row);
    System.out.println("outside loop: " + row);
    headVector.addElement("Title");
    headVector.addElement("Type");
    dataTable = new JTable(dataVector, headVector);
    dataTableScrollPane.setViewportView(dataTable);
    } catch (IOException e) {
    // catch io errors from FileInputStream or readLine()
    System.out.println("Uh oh, got an IOException error!" + e.getMessage());
    } finally {
    // if the file opened okay, make sure we close it
    if (dis != null) {
    try {
    dis.close();
    } catch (IOException ioe) {
    } // end if
    } // end finally
    } // end dbTest
    // Exits the program upon closing the window
    public void exitWindow(int i) {
    System.exit(i);
    public GUIdirectory() {
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    jButton1.setText("jButton1");
    this.getContentPane().add(jButton1, BorderLayout.CENTER);

    Nothing happens because in the actionPerformed() method you are creating a new version of GUIdirectory. You just want to execute the dbTest() method of the current instance of GUIdirectory.
    The code should be:
    public void actionPerformed(ActionEvent evt)
    //GUIdirectory gui = new GUIdirectory();
    //gui.dbTest();
    dbTest();

  • Importing a Text File to Database

    Hi There,
    Years ago with limited Coldfusion experience I created a Cold fusion process (below) that deletes the contents of a database table and inserts the contents of a 7mb text file which is passed via FTP down to our web server at regular intervals. Admittingly the code below is probably clunky to the more experienced, however i have found this process to work for the last 4 years without a problem. Recently my web server (shared hosted environment) has been throwing this error when this page runs,
    "Request aborted due to heavy system load.",
    I asked my host if there has been any changes, extra sites recently added to the server that may be causing this congestion which they naturally replied "no". I even tried reducing the text file size to about 3mb but still got the same issue. Is there any other more efficient coldfusion code options I can try that may be quicker and prevent the error from being thrown?
    Im on Coldfusion 7 and using MS SQL server, database and coldfusion are on differnt boxes in a shared environment.The text file can contain null values and is delimeted by a pipe character "|"
    Any help appreciated
    <cfsetting requesttimeout="600">
    <cftransaction>
    <cfquery name="delete" datasource="#client.dsn#" username="#client.username#" passWord="#client.password#">
    delete from xxxxxx
    </cfquery>
    <cfhttp method="get" textqualifier=" " username="xxxxx" password="xxxxxx" firstrowasheaders="no" delimiter="|" name="test" url="http://xxxxxxxxxxxxxx/br_orders.txt">
    Records Read <cfoutput>#test.recordcount#</cfoutput>
    <cfloop query="test">
    <cfquery name="insert" datasource="#client.dsn#" username="#client.username#" passWord="#client.password#">
    INSERT INTO xxxxx
    (OrderNo, Line, AccountNo, AccountNoShip, Shipment, PurchaseOrder, Completed, OrderDate, ShipmentDate, Product, QtyOrdered, QtyShipped, Price, Carrier, Connote, Delivery1, Delivery2, Delivery3, Delivery4, Delivery5, Delivery6, Delivery7, Delivery8, expected)
    VALUES (
    <cfqueryparam value='#test.column_1#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_2#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_3#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_4#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_5#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_6#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_7#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_8#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_9#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_10#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_11#' cfsqltype="cf_sql_float">,
    <cfqueryparam value='#test.column_12#' cfsqltype="cf_sql_float">,
    <cfqueryparam value='#test.column_13#' cfsqltype="cf_sql_float">,
    <cfqueryparam value='#test.column_14#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_15#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_16#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_17#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_18#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_19#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_20#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_21#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_22#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_23#' cfsqltype="cf_sql_varchar">,
    <cfqueryparam value='#test.column_24#' cfsqltype="cf_sql_varchar">
    </cfquery>
    </cfloop>
    <cfparam name="OZ" default=""><cfset OZ=#dateAdd("h",18,now())#>
    <cfset OZ=#CreateODBCDateTime(OZ)#>
    <cfquery datasource="#client.dsn#" username="#client.username#" password="#client.password#">
    UPDATE
    UpdateTimes
    SET
           time=#OZ#
      WHERE
      id=<cfqueryparam value="1" cfsqltype="cf_sql_integer">
    </cfquery>
    </cftransaction>

    Girish Sharma wrote:
    "I would be really grateful."
    But now OP will not really grateful to you; because;
    1.You are not going to perform/import the data at his machine.
    2.You have not given him the required control file.... (even without knowning anything)
    3.You have given only SQL Loader word; so now "oaf... i have to read Doc.."
    Regards
    Girish SharmaHahahaha . Supper.. ROFL! :)

  • How to load data in plain-text file into database by using EJB?

    Hi,
    We need to develop an on-line application which requires us to load input data
    from a selected plain-text file on the Web server (iplanet server) into the backend
    oracle database. How could I use EJB to make it happen? it seems like using Entity
    EJB is not feasible.
    Really appreciate your help!
    Corona

    Hi Corona,
    "Corona Fang" <[email protected]> wrote in message
    news:3f3b0ea3$[email protected]..
    We need to develop an on-line application which requires us to load inputdata
    from a selected plain-text file on the Web server (iplanet server) intothe backend
    oracle database. How could I use EJB to make it happen? it seems likeusing Entity
    EJB is not feasible.If you are talking about loading thousands of records,
    the preferable way is using plain JDBC calls utilizing
    batch methods.
    Regards,
    Slava Imeshev

  • HOW TO IMPORT HUNDREDS OF TEXT FILE TO DATABASE AS TABLE

    Hi,
    I have hundreds of text files in my computer. Every text file includes records. I want to see these records in one table at the database. How can I do that?
    thank you very much for help
    ömer faruk akyüzlü
    in Turkey

    I have a standard template that my developers use for reading text files using External Tables . Each developer gets an external table to read in test data. The format the data in CSV format, but you could use others. The External Table points to a generic file name, such as "csv_data". They then just rename the file or create a link to it, depending on the OS.
    My solution uses the Directory objects. The following can be put in a script and run passing the first argument as the developers name. It supports a csv file upto 15 columns, but you can expand it.
    -- begin script
    CREATE OR REPLACE DIRECTORY &1 as '/home/&1';
    grant read on directory &1 to public;
    alter session set current_schema=&1;
    --drop table csv_data;
    CREATE TABLE csv_data
    col1 VARCHAR2(250),
    col2 VARCHAR2(250),
    col3 VARCHAR2(250),
    col4 VARCHAR2(250),
    col5 VARCHAR2(250),
    col6 VARCHAR2(250),
    col7 VARCHAR2(250),
    col8 VARCHAR2(250),
    col9 VARCHAR2(250),
    col10 VARCHAR2(250),
    col11 VARCHAR2(250),
    col12 VARCHAR2(250),
    col13 VARCHAR2(250),
    col14 VARCHAR2(250),
    col15 VARCHAR2(250)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY &1
    ACCESS PARAMETERS
    (RECORDS DELIMITED BY newline
    NOBADFILE
    NODISCARDFILE
    NOLOGFILE
    SKIP 0
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    RTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL FIELDS
    col1 CHAR, col2 char,col3 char,col4 char,col5 char,col6 char,col7 char,col8 char,col9 char,
    col10 char,col11 char,col12 char,col13 char,col14 char,col15 char
    LOCATION (&1:'csv_data')
    REJECT LIMIT Unlimited
    NOPARALLEL
    NOMONITORING
    --end script

  • Reading Text file or Database efficiently

    Hi.
    I have an option to read EMP names randomly from either text file or database . Can anyone tell me which one will be fast. I have to read more than 5000 names dynamically for my application and pick one name randomly.
    Many thanks, Ravi

    Hi quitte ,
    Thanks for replying. I just want to pick names randomly from file or database to name each and every customer in my application dynamically.
    For this, I created one table with Unique names and would like to design a code such that each customers will be named dynamically.
    Any Suggestions or Advise?
    Ravi

  • Text file to database

    hi all.
    please i need to read data seperated by coma from a text file and insert it in oracle database. how can i do this
    thanx

    Use this function (with Forms : TEXT_IO)
    (Change PIPE-delimited line with comma -delimited )
    create a FUNCTION in Program Unit
    FUNCTION TOKEN (LINEBUF IN OUT VARCHAR2) RETURN VARCHAR2 IS
    /* Returns the first token from the PIPE-delimited line */
    /* passed as linebuf. Linebuf then has that token stripped */
    /* so that subsequent calls return the second, third, etc. */
    FIRST_TOKEN VARCHAR2(70);
    PIPE_POS NUMBER;
    BEGIN
    PIPE_POS := INSTR(LINEBUF, ',');
    IF PIPE_POS = 0 THEN
    FIRST_TOKEN := LINEBUF;
    LINEBUF := null;
    ELSE
    FIRST_TOKEN := SUBSTR(LINEBUF, 1, PIPE_POS - 1);
    LINEBUF := SUBSTR(LINEBUF, PIPE_POS + 1);
    END IF;
    RETURN FIRST_TOKEN;
    END;
    Or If you are using 10gR2
    Look
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    or
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    or Francois Degrelle Blog(There is a example)
    http://fdegrelle.over-blog.com/
    Regards

  • Reading text file from database server in OA Page

    Hi Guys,
    I am trying to embed an applet with in an OA Page. The applet is used to mainly for showing Gantt chart. I have to pass my connection details from OA Page to applet, I dont pass directly the connection details to the applet so i am placing all the server details, user name and password in a text file on the database server.
    So from the OA Page i have to read the contents of the file on the database server and pass them to the applet using the <PARAM> tag. My question is how to read the text file from the database server.Any Inputs?
    Thanks in advance for your help.
    Regards,
    Nagesh Manda.

    If the file to be read is on the database, then it makes sense to use the pl/sql code to read the file. Make a call to this pl/sql code from page controller to get back the values.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Can't play purchased songs even on an authorized computer.  I have tried all the fixes with no help.

    I just recently purchased a new computer running Windows 7 64 bit.  I downloaded the latest edition of itunes, and transfered all of my old itunes purchases from my XP computer onto this new computer.  The problem that I am having is that I am being

  • T code for Total incoming payment

    Dear friends I want to know the the Tcodes / menupath for the following reports. 1. The total incoming payment received from a particular e PAYER/Customer. 2. The total outstanding payment of a particular payer/ customer.( goods have been despatched

  • Problem with a bapi fm...

    hi all, i have a problem with Bapi_goodmvt_create.     CALL FUNCTION 'BAPI_GOODSMVT_CREATE'       EXPORTING         goodsmvt_header  = gt_header         goodsmvt_code    = gt_bapigm_code         testrun                 = 'X'       IMPORTING         g

  • SHED Hotspots on SHG Images Not Working

    In RH8 (RoboHelp for Word), I'll create an image in Image Workshop.  I'll hotspot the images with jumps to secondary windows as I've done for over a decade with previous versions of RH for Word.  Upon compiling, I receive a bunch of HC3005 and HC3003

  • Loss of Sound After Waking From Sleep or unplug headsets

    As the title said, it lose sound sometimes, I have to restart it, then it will OK. Is there a better way to solve that?