How to read the TEXT TABLE (or) .CSV in HSQLDB Standalone using Java

Hi, I like to use the text tables in our application. And like to use the HSQL Database Engine as Standalone. I created the text tables, those are stored in the disk as ".CSV" files. But i am unable to read that text table (.CSV) when i relogin and gave the CSV file path as URL along with "jdbc:hsqldb:file". So can anybody give me the tips how use the text tables.
Regards,
Vinay

You need to make a URLConnection to the page you want, and get the input stream from that page.
The contents of the input stream (use a reader to get them) will give you the raw HTML code. Use a parser to get the actual content. I dont know of a parser offhand, but you can search for one.

Similar Messages

  • How to read the TEXT TABLES (Or) .CSV in HSQLDB using JAVA

    Hi,
    I want to use the HSQLDB instead of mdb in our application. I am using the HSQLDB Engine Standalone mode, and given a file name "TEMP" in URL along with the "jdbc:hsqldb:file:". Then a I created a TEXT TABLE, that table was created as a .CSV file in the Disk. But I am unable to read that CSV, I tried that file in the database URL. But its not working. Can anubody give me the suggestions.
    Thankyou,
    Regards,
    Vinay.

    Hi Rajeshreddy.k,
    To add multiple users to one group, I wouldn't use a .csv file since the only value you need from a list is the users to be added.
    To start create a list of users that should be added to the group, import this list in a variable called $users, the group distinguishedName in a variable called $Group and simply call the ActiveDirectory cmdlet Add-GroupMember.
    $Users = Get-Content -Path 'C:\ListOfUsernames.txt'
    $Group = 'CN=MyGroup,OU=MyOrg,DC=domain,DC=lcl'
    Add-ADGroupMember -Identity $Group -Members $Users

  • How to Read the "text file and csv file" through powershell Scripts

    Hi All
    i need to add a multiple users in a particular Group through powershell Script how to read the text and CSV files in powershell
    am completly new to Powershell scripts any one pls respond ASAP.with step by step process pls
    Regards:
    Rajeshreddy.k

    Hi Rajeshreddy.k,
    To add multiple users to one group, I wouldn't use a .csv file since the only value you need from a list is the users to be added.
    To start create a list of users that should be added to the group, import this list in a variable called $users, the group distinguishedName in a variable called $Group and simply call the ActiveDirectory cmdlet Add-GroupMember.
    $Users = Get-Content -Path 'C:\ListOfUsernames.txt'
    $Group = 'CN=MyGroup,OU=MyOrg,DC=domain,DC=lcl'
    Add-ADGroupMember -Identity $Group -Members $Users

  • How to get the password of a password protected Excel Sheet using java/jxl

    Hi ,
    how to get the password of a password protected Excel Sheet using java / jxl program.
    plz any one help me .
    Ramesh P
    [email protected]

    If they've implemented the password system correctly there probably isn't a way of getting the password at all.

  • Function and Department of contactpersons - how to read the texts

    Hello,
    we use at the level of contact person the fields FUNCTION and DEPARTMENT where codes represent a function or department.
    My question is how could we read the texts in users language for the codes in this fields?
    Are there function modules we could use?
    Thank you.
    Kind regards
    Manfred

    hi,
    Use FM BUPR_CONTP_GET_DETAIL to get the codes of Function and department.
    Read the language of the user
    Pass those codes along with language to TB911 --> Departments and TB913 --> functions to get the descriptions repectively
    Regds,
    Raghu

  • How to read the text file present in the Al11 server through our program?

    My requirement is that , i have one file already present in the AL11 server. Now i want to take this file so that I can read this file .
    So will you please help me , how to read the file from AL11 server in our program ?
    Thankx in advance

    Hi..
    I too agree to the above post .. SEARCH in SCN before posting..
      DATA: lv_filename  TYPE string, "File name
            lv_line      TYPE string. "One line entry in a file
      lv_filename = iv_file_name.
      IF iv_location = gc_application.
        IF iv_record_count IS SUPPLIED.
      Open file
          IF gv_file IS INITIAL.
            OPEN DATASET lv_filename FOR INPUT IN TEXT MODE
                                     ENCODING DEFAULT.
                                     ENCODING DEFAULT
                                     IGNORING CONVERSION ERRORS.
            IF sy-subrc <> 0.
              RAISE file_open_error.
            ENDIF.
            gv_file = gc_check.
          ENDIF.
      Read data
          DO iv_record_count TIMES.
            READ DATASET lv_filename INTO lv_line.
            IF sy-subrc <> 0.
      Close file
              CLOSE DATASET lv_filename.
              IF sy-subrc NE 0.
                RAISE file_close_error.
              ENDIF.
              CLEAR gv_file.
    Exit from the loop
              EXIT.
            ENDIF.
    Regards
    Ansari

  • Hi how to edit the text content in CSV

    Hi,
    I need to edit the text content in CSV using java script.
    The content goes like this..........
    "missing image No"
    need to replace "No" by "Yes"
    Thanks in advance

    > I need to edit the text content in CSV using java script.
    Something like this work. I haven't tested it but it pretty close :)
    var file = new File("~/somefile.csv");
    file.open("r");
    file.close();
    var str = file.read();
    var nstr = str.replace(/\bNo\b/g, 'Yes');
    file.open("w");
    file.write(nstr);
    file.close();
    -X

  • How to Read the internal table for the data download from the spool

    HI all,
    I have one issue regarding the spool ,we are getting the correct output as per requirement of  user but when we send the same to the user in pdf format they did notget the same.
    they are telling that the due date is missing from the pdf.
    Please advice me how to track the internal  table for the spool data converted intopdf in a readable format.
    the FM used for the above task is : 
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
    Please reply if any one worked on the same.
    Thanks in advance.
    Gaurav,

    Hi Wang,
    Please let me know how you solved your question.
    Points will be rewarded.
    Thanks,
    Arun.

  • How to Read the text enetered in Notes Tab of Invoice Doc. ( FB60, MIRO  )

    Hi All,
    We are trying to read the Text Entered in Notes Tab of Invoice Doc using the tcode FB60, MIRO..
    We are able to see the text when we use these tcode but can you please help us how to read these deatils in a program..
    We wanted to download these notes corresponding to the Invoivces..
    Thanks in Advance....
    Regards,
    Vidya.

    Hmm..you will get lots of links if you search the forum/google..
    Anyway - keep a breakpoint in SAVE_TEXT/READ_TEXT function module and create/display MIRO and FB60 documents - this tell you how it stores and reads long text.
    You should use READ_TEXT in your program with same header inputs with respective TDOBJECT and TDNAME parameters.

  • How to read the text in a link present in a web site ?

    An excellent example I can think of ..is this forum. Using a Java program I need to access/read
    the text present in all the topics posted here (in one page) and put them into a file. In this way if suppose the network goes down, I can still read the entire topic stored in the text file. This program can be scheduled to run daily.
    Can anyone give any sample code/hints to do this ?
    Thanks in advance.

    You need to make a URLConnection to the page you want, and get the input stream from that page.
    The contents of the input stream (use a reader to get them) will give you the raw HTML code. Use a parser to get the actual content. I dont know of a parser offhand, but you can search for one.

  • How to read the texts

    i defined standard e-mail text in SO10.
    which consist of 35 lines content.
    I want to read this texts and pass this to the function
    module to sent as an external e-mail
    Could you please help with a function module to do so ?

    hi use the fm read_text..like this..
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        id                               = C_TEXT_ID_0001
        language                      = I_WWMV-SPRAS
        name                          = TEXT_NAME
        object                        = C_TEXT_OBJECT_WLB
    IMPORTING
       HEADER                        = THEAD
    TABLES
        lines                         = t_tline
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8

  • How to read the text from the item text of the purchase order

    i want to extract the text which is maintained in the purchase order item text. i used the function module read_text but it reads only the header text. can anyone help.

    u have to chek the following parameters  
      ID: this textid
      language:language u maintained the text,this also important
       name: The no in which text-id is maintained
             Usually we make mistake here,the no is          combination of purchase order no and item no.
    Example:420000210000010(Puchase orderno:4200002100 item no:00010)
        Object:it change based on the text-id so u can check it the document no.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_lines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Pass the varibles as i have said and let me know if u face any problem.
    Regards

  • How to read the decimal portion of a double number? (using scanner method)

    hello Java pros....
    I need to read the integer and decimal part of a double number, one independently of the other.
    I must be able to assign the integer part to a variable, and the decimal part to a different variable.
    Is there a method that does what I need directly after reading the initial value (double) ?
    or, should I include the condition to read the decimal point somehow?
    the initial value will be input from the console using a scanner method.
    lets say the number I have is 123.345
    I must be able to separate 123 from 345 and use them independently.
    thank you all!!
    al

    The scanner should read in the user input as a string, so you have "123.456". Do something like the following:
    String   doubleNumber             = "123.456";
    String[] numberParts              = doubleNumber.split("\\.");
    int       wholeNumberPortion       = Integer.parseInt(numberParts[0]);
    int       fractionalPortion        = Integer.parseInt(numberParts[1]);
    System.out.println(wholeNumberPortion  + "." +  fractionalPortion);

  • How to read the source table using a dblink in oracle

    Hi,
    I want to read data from a source table which I can access using dblink in the datawarehouse. I tried different things in DI and I don't know how to do that? Can any one help me on this?
    Thanks,
    Gowri

    Two options:
    First you could create a view in the dwh database that is using that remote link: create or replace view r_source as select * from source@dblink.
    Better option is to create the source system datastore - but I assume that exists already - and then go to the dwh datastore and say that there is a dblink of a given name with which the target database can read from the other database. DI then will execute a insert...select from source@dblink kind of statement whenever that is possible. In case no such full pushdown is possible and the data is going through the DI engine anyway, reading via the dblink does not make sense anyway.
    https://boc.sdn.sap.com/node/5065
    https://boc.sdn.sap.com/node/5814

  • How to read the text shown in the "Look in" field in a JFileChooser?

    Hello,
    I work on a windows environment and I have a network drive mapped on my computer.
    The mapped network drive letter is: X:\
    When I open the JFileChooser and point to this drive and choose it ,in the JFileChooser's "Look in" field this is what is written: Version6.1 on server(X:) but when I choose it and print the pathName it returns only the mapped network drive letter (i.e. X:\) (which is of course understandable).
    The user wants to see the name of the folder he has chosen and not just the drive's letter.
    How can I possibly get the exact test shown in the JFileChooser before returning?
    Thanks.

    >
    When I open the JFileChooser and point to this drive and choose it ,in the JFileChooser's "Look in" field this is what is written: Version6.1 on server(X:) but when I choose it and print the pathName it returns only the mapped network drive letter (i.e. X:\) (which is of course understandable).
    The user wants to see the name of the folder he has chosen and not just the drive's letter.
    How can I possibly get the exact test shown in the JFileChooser before returning?
    >
    Your question is confusing. If the user chose a folder then they will see the name of the folder and the full path.
    You might be referring to the system display name for the drive itself. If that is what you want you will need to add code to get that name and display it to the user. The dialog isn't going to include the display name.
    For example if I map drive z to the c drive of another machine I can get that drive name the way it is displayed:
    restoreFolderChooser.getFileSystemView().getSystemDisplayName(new File("z:\\"))
    "c$ on 'blade1' (Z:)"Is that was you are looking for?
    See the FileSystemView class in the Javadocs
    http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/filechooser/FileSystemView.html
    >
    getSystemDisplayName
    public String getSystemDisplayName(File f)Name of a file, directory, or folder as it would be displayed in a system file browser. Example from Windows: the "M:\" directory displays as "CD-ROM (M:)" The default implementation gets information from the ShellFolder class.
    Parameters:
    f - a File object
    Returns:
    the file name as it would be displayed by a native file chooser
    See Also:
    JFileChooser.getName(java.io.File)

Maybe you are looking for

  • Icloud is not working

    icloud is not working

  • Looking for a specific country

    Hey guys, I was just wondering if Ovi maps for Armenia is available. I updated to 3.06, but I could have sworn to have seen it available for download before updating. When I check in Ovi suite now, it is not available. Solved! Go to Solution.

  • Error compiling movie: unknown error & Mercury Playback GPU acceleration

    Hardware 2014 Mac Pro, 12GB RAM, 3.7 GHz Quad-Core Intel Xenon ES Processor, duel AMD FirePro D300 2048 MB graphics cards Software Mavericks (10.9.4) Premiere Pro CC2014 (8.0.1) I'm attempting to render out a moderately complex sequence. Raw footage

  • EBS High Availability design

    Hi Gurus, What is the best way of configuring HA on EBS (APPS) side the DB side is running on an Exadata machine.I have 2 Sparc T-4s that i can use for the APPS.MOS Notes appreciated.

  • How to remove JFrame instance

    Dear all Can someone tell me ho to remove an instance without exit the whole system, the reason is I need to remove a JFrame after the user click the button, the setVisible() is not work in case. any advice will be greatest appreciate.