Ascii character 129 for newline in the text file

Hi there,
I have java program that makes JDBC connection and reads through a table, write a column in text file, after each column puts delimiter "|"and after each row prints in the next line.
This is the code below.
public void queryRecords() {
         Statement stmt           = null;
        ResultSet rset           = null;
        try {
              stmt = con.createStatement();
              int numRows = 0;
            File file           = new File("/tmp/temp.txt");
            FileWriter writer   = new FileWriter(file, false);
            BufferedWriter pw      = new BufferedWriter(writer);
            rset = stmt.executeQuery("SELECT * FROM mytable");
            ResultSetMetaData rsmd = rset.getMetaData();
            int colCount = rsmd.getColumnCount();
            while (rset.next()) {
                for (int i = 1;i <= colCount; i++) {
                    String st = rsmd.getColumnTypeName(i);
                    if (st.equals("DATE")) {
                        Date d1 = rset.getTimestamp(i);
                        pw.write(d1 + "|");
                    } else {
                        Object o1 = rset.getObject(i);
                        if (o1 != null) {
                            pw.write(o1 + DELIM);
                        } else {
                            pw.write(DELIM);
                pw.newLine();
            pw.close();
             rset.close();
             stmt.close();When i open this Temp.txt file in notepad i see ascii character 129 (rectangular box) instead of the new line. But when i print the file i have each row in a separate line.
Why could this be happening??
Please help...

hi,
Try PrintWriter instead :
File file = new File("D:/testing.txt");
        //FileWriter writer   = new FileWriter(file, false);
        //BufferedWriter pw      = new BufferedWriter(writer);
        PrintWriter pw = new PrintWriter(file);
        pw.print("aaa");
        pw.print("|");
        pw.print("aaa");
     public static void main(String[] args) throws Exception {
          File file = new File("/test/test.txt");
        //FileWriter writer   = new FileWriter(file, false);
        //BufferedWriter pw      = new BufferedWriter(writer);
        PrintWriter pw = new PrintWriter(file);
        pw.print("aaa");
        pw.print("|");
        pw.print("aaa");
        pw.print("|");
        pw.print("aaa");
        pw.println();
        pw.print("aaa");
        pw.print("|");
        pw.print("aaa");
        pw.print("|");
        pw.print("aaa");
        pw.close();
     }hth

Similar Messages

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • Search for a word and return all the  lines (row) from the text file..

    Hi all,
    I need a help on how to search a string from the text file and returns all the lines (rows) where the searched string are found. I have included the code, it finds the indexof the string but it does not return the entire line. I would appreciate your any help.
    public class SearchWord
         public static void main(String[] args){
         //Search String
         String searchText = "man";
         //File to search (in same directory as .class file)
         String fileName = "C:\\Workspace\\MyFile.txt";
         //StringBuilder allows to create a string by concatinating
         //multiple strings efficiently.
         StringBuilder sb =
         new StringBuilder();
         try {
         //Create the buffered input stream, which reads
         //from a file input stream
         BufferedInputStream bIn =
         new BufferedInputStream(
         new FileInputStream(fileName));
         //Holds the position of the last byte we have read
         int pos = 0;
         //Holds #of available bytes in our stream
         //(which is the file)
         int avl = bIn.available();
         //Read as long as we have something
         while ( avl != 0 ) {
         //Holds the bytes which we read
         byte[] buffer = new byte[avl];
         //Read from the file to the buffer
         // starting from <pos>, <avl> bytes.
         bIn.read(buffer, pos, avl);
         //Update the last read byte position
         pos += avl;
         //Create a new string from byte[] we read
         String strTemp =
         new String(buffer);
         //Append the string to the string builder
         sb.append(strTemp);
         //Get the next available set of bytes
         avl = bIn.available();
         catch(IOException ex) {
         ex.printStackTrace();
         //Get the concatinated string from string builder
         String fileText = sb.toString();
         int indexVal = fileText.indexOf(searchText);
         //Displays the index location in the file for a given text.
         // -1 if not found
         if (indexVal == -1)
              System.out.println("No values found");
         else
              System.out.println("Search for: " + searchText);     }
    }

    Hi, you can use servlet class and use this method to get the whole line of searched string. You can override the HttpServlet to treat that class as servlet.
    public class ReportAction extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    //write your whole logic.
    BufferedReader br = new BufferedReader(new FileReader("your file name"));
    String line = "";
    while(line = br.readLine() != null) {
        if(line.contains("your search string")) {
            System.out.println("The whole line, row is :"+line);
    }

  • Initial character in another fontface than the text beside it?

    I want an initial character thats to be in another typeface than the rest of the text beside it. However if I change the initial character (the larger initial) the rest of the text follows and if I change back the text to the way its suppose to be the initial character changes to be to the rest of the text.
    What do I do to make the initial character in one typeface and the text beside it in another typeface and without these interferring with each other?

    One thread from you on this subject should be sufficient, so I'm going to lock this one. Please continue in your first thread, http://forums.adobe.com/message/4086349
    Everything you are trying to do can be handled by the use of a Character Style applied to the first character.

  • Error in Downloading the Text file on Application Server

    Hi All,
              I am working on ECC6.0. I have written a program in whcih I am downloading the text file on
              application server in UTF-8 format. However when I am opening this file in Excel I am getting
              garbage value for some characters(as Excel does not support UTF-8 format). So now I
              want to download the data on application server in text file in non unicode format(Like ANSI or
              other non unicode format) which is supported by excel. When I am writing the code as
              OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT MODE it is giving me dump saying
              CHARACTER CONVERSION FROM CODE PAGE '4102' to CODEPAGE '1100' NOT POSSIBLE.
              Same in case if I add the code OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT
              MODE CODE PAGE '8000' is also giving dump.
              So please let me know how can I download the file in non unicode format ?
              Any help would be greatly appricated.
    Thanks & Regards
    Jitendra Gujarathi.

    OPEN DATASET l_filename FOR INPUT IN TEXT MODE  ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
    CHECK sy-subrc EQ 0.
      DO.
        CLEAR wa_file_content.
        READ DATASET l_filename INTO wa_file_content.
        IF sy-subrc EQ 0.
          APPEND wa_file_content TO it_file_content.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE  DATASET l_filename.
      t_filedata[] = it_file_content[].
    can you use like this.

  • Problen when Sending the text file as attachment to the external mail

    HI,
    I am sending the text file as an attachment to a aexternal mai. mailing is going with text file attachment, but text file is empty. No information in the file is going, only empty text file is going. I am sending the code  iam using. Please suggest, if I need to change any passing parameters orany other other solution.
    tables: knb1,kna1,adr6,ITEMSET,bsid,TSP01.
               INTERNAL TABLES
    DATA: BEGIN OF it_kna1 occurs 0,
            KUNNR LIKE KNA1-KUNNR,
            ADRNR LIKE KNA1-ADRNR,
          END OF it_kna1.
    DATA: BEGIN OF it_email occurs 0,
            ADDRNUMBER LIKE ADR6-ADDRNUMBER,
            SMTP_ADDR LIKE ADR6-SMTP_ADDR,
          END OF it_email.
    DATA: BEGIN OF it_bsid occurs 0,
           KUNNR LIKE BSID-KUNNR,
           BUKRS LIKE BSID-BUKRS,
         END OF it_bsid.
    DATA: BEGIN OF it_final occurs 0,
            KUNNR LIKE KNA1-KUNNR,
            ADRNR LIKE ADR6-ADDRNUMBER,
            EMAIL LIKE ADR6-SMTP_ADDR,
          END OF it_final.
    DATA: BEGIN OF BUFFER OCCURS 10000,
              TEXT(255) TYPE C,
            END OF BUFFER.
    data:xtext type solix_tab." occurs 0 with header line."line.
    data:xi_pdf type soli_tab.
    DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2  WITH HEADER LINE,
          OBJHEAD LIKE SOLISTI1   OCCURS 1  WITH HEADER LINE,
          OBJBIN  LIKE SOLISTI1   OCCURS 0  WITH HEADER LINE,
          OBJTXT  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE,
          RECLIST LIKE SOMLRECI1  OCCURS 5  WITH HEADER LINE,
          DOC_CHNG  LIKE SODOCCHGI1,
         PARAMS   LIKE PRI_PARAMS,
         ARPARAMS LIKE ARC_PARAMS,
         DAYS(1)  TYPE N VALUE 8,
         COUNT(3) TYPE N VALUE 1,
         VALID    TYPE C,
         RECEIVER(30),
         STR(256).
    data:  spoolid    type tsp01-rqident,
           pdf_table like tline occurs 0 with header line,
           v_bytecount type i,
           itab_pdf like tline occurs 10 with header line,
          xi_pdf  like tline occurs 0 with header line,
          xi_pdf  like buffer occurs 0 with header line,
           xi_pdf_1 like xi_pdf,
           v_length(2) type p,
           html  like solisti1   occurs 0  with header line,
           xi_temp      like bapiqcmime occurs 0 with header line,
           xi_mime(255) type c occurs 0 with header line.
              VARIABLES
    data: g_email type adr6-smtp_addr,
          TAB_LINES LIKE SY-TABIX,
          G_FLAG(1) TYPE C.
         g_norm(1) TYPE C,
         g_shbv(1) TYPE C,
         g_merk(1) TYPE C,
         g_park(1) TYPE C,
         g_apar(1) TYPE C.
    data: l_lines     type i,
          line1       type i,
          l_temp(500) type c,
          l_offset    type p,
          l_lineslen(2) type p,
          l_mimelen(2)  type p,
          v_spono like tsp01-rqident,
          l_tabix       like sy-tabix.
    *****VIA SELECTION-SCREEN
    ENDFORM.                    " SEND_TO_SPOOL
    *&      Form  GET_SPOOL_ID
    *&      Form  CONVERT_SPOOL_TO_PDF
    *&      Form  SEND_MAIL
    FORM SEND_MAIL .
      data:l_lin  like sy-tabix,
            l_lint like sy-tabix,
            it_list like abaplist occurs 0,
            l_newline(2) type x value '0D0A'.
    *--Data for the status output after sending
      data: user_address like sousradri1 occurs 1 with header line,
            sent_to_all like sonv-flag.
      clear: reclist, reclist[],
             objtxt , objtxt[],
             objpack, objpack[],
             objbin , objbin[],
             doc_chng.
    *--move list to office table objbin
    *--Start of Changes to support PDF attachments - UB20030116
    loop at html.
       objbin-line = html-line.
       append objbin.
       clear objbin.
    endloop.
    loop at xi_pdf.
       objbin-line = xi_pdf-text.
       append objbin.
       clear objbin.
    endloop.
    *--We may write additional text to the main document
    *--For faxing this will be the cover page. Like sending from SAPoffice
    *--the layout set Office-Telefax will be used.
      objtxt-line = 'NOTE : Please Consider the below Headers'.
      append objtxt.
      clear objtxt.
      objtxt-line = 'Assignment -->  Purchase order number '.
      append objtxt.
      clear objtxt.
      objtxt-line = 'Document  -->   Invoice No '.
      append objtxt.
      clear objtxt.
      objtxt-line = 'Amount In DC --> Amount Due '.
      append objtxt.
      clear objtxt.
      objtxt-line = '                                            '.
      append objtxt.
      clear objtxt.
      objtxt-line = '                                            '.
      append objtxt.
      clear objtxt.
      objtxt-line = 'Please find attached statement for this week'.
      append objtxt.
      clear objtxt.
      objtxt-line = '                                            '.
      append objtxt.
      clear objtxt.
      objtxt-line = 'This is an AUTO GENERATED MAIL'.
      concatenate objtxt-line 'Please Do not reply to this mail' into
      objtxt-line separated by ' '.
      append objtxt.
      clear objtxt.
      describe table objtxt lines tab_lines.
      read table objtxt index tab_lines.
    *--Create the document which is to be sent
    doc_chng-obj_name  = 'List'.
      doc_chng-obj_name = 'SAPRPT'.
    doc_chng-obj_descr = 'Customer statement for the week'.
      concatenate 'Customer statement for '
                  sy-datum into
                  doc_chng-obj_descr
                  separated by ' '.
      doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).
    *--Fill the fields of the packing_list for the main document:
    *--It is a text document
      clear objpack-transf_bin.
    *--The document needs no header (head_num = 0)
      objpack-head_start = 1.
      objpack-head_num = 0.
    *--but it has a body
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
    *--of type RAW
      objpack-doc_type = 'RAW'.
      append objpack.
    *--Create the attachment (the list itself)
      describe table objbin lines tab_lines.
    *--Fill the fields of the packing_list for the attachment:
    *--It is binary document
    objpack-transf_bin = 'X'.
    *--we need no header
      objpack-head_start = 1.
      objpack-head_num = 0.
    *--but a body
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
    *--of type G_DOC_TYPE
    objpack-doc_type = 'PDF'. "commented on 12/13/2007
      objpack-doc_type = 'TXT'. "commented on 12/13/2007
      objpack-obj_name = 'Attachment'.
    objpack-obj_descr = 'Customer Statement'.
      concatenate 'Customer Statement' sy-datum into objpack-obj_descr.
      objpack-doc_size = tab_lines * 255.
      append objpack.
      reclist-receiver = g_email.
      reclist-rec_type = 'U'.
    reclist-com_type = 'FAX'.
      append reclist.
      data:xi type soli.
    xi-line = 'haisdgsfsdf'.
    append xi to xi_pdf.
    xi-line = 'haisdfdsfd'.
    append xi to xi_pdf.
    xi-line = 'haisfgsdfsd'.
    append xi to xi_pdf.
    xi-line = 'haisdfsgfsdgg'.
    append xi to xi_pdf.
    *xi_pdf-text = 'hai'.
    *append xi_pdf.
    *xi_pdf-text = 'hai'.
    *append xi_pdf.
    *xi_pdf-text = 'hai'.
    *append xi_pdf.
    *xi_pdf-text = 'hai'.
    *append xi_pdf.
    CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
        EXPORTING
          ip_solitab        = xi_pdf[]
       IMPORTING
         EP_SOLIXTAB       = xtext[].
    **--Send the document by calling the SAPoffice API1 module for sending
    **--documents with attachments
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          PUT_IN_OUTBOX              = 'X'
         COMMIT_WORK                = 'X'
        IMPORTING
          sent_to_all                = sent_to_all
        TABLES
          packing_list               = objpack
          object_header              = objhead
         contents_bin               = objbin
          contents_txt               = objtxt
          contents_hex               = xtext
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          others                     = 99.

    HI,
    There are lots of bugs.
    Please refer this sample program to fix it.
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    Best regards,
    Prashant

  • Powershell script - how to read a registry hive and store the value in text file and then again read the text file to write the values back in registry

    Hi All,
    powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
    For example the hive is
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
    and under path i need to take back up  of values in some text file and then put some value in the registry after back is taken in text file.
    Also how to read the text file values so that we can again write to registry hive  back from the back up text file.
    Your help is much appreciated.
    Umeed4u

    I think you need to read this first:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • How to make an applet to read the Text file present inside a jar

    Hi All,
    I have writen one applet named ReadFile.java which reads a text file present in the same directory and does some manipulation of text file contents.
    The applet code runs successfully when i run the applet in command prompt like
    {color:#ff0000}*java ReadFile*{color}
    And i am getting the needed results.
    Then i made a jar file with the applet code and text file as
    {color:#ff0000}*jar cvf rf.jar ReadFile.class File1.txt*{color}
    Then i have inlcuded this applet inside a html file as
    {color:#ff0000}*<applet code= "ReadFile.class" width= "500" height= "300" archive = "rf.jar" ></applet>*{color}
    after this when i load the html file, the applet code is not executed fully. Its throwing FileNotFoundException: File1.txt.
    Applet is not recognizing trhe text file present inside the jar file.
    Can any body explain me how to overcome this problem. Any setting needs to be done for making the applet indicate the presence of Text file inside the jar file.

    what code in your applet gets the text file and reads it? are you using getResource or something similar?

  • Sending the text file in ECC 6.0

    Hi All ,
    Note: I searched the so many forums about this but didnt not get the correct solution so I am posting this.
    In 4.7 version i used the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to generate the Text file, and it is working good. but now after the upgrdation to ECC 6.0 version , same program with this FM is not working same like 4.7 version.
    Is there any thing need to add or remove or Any SAP NOTE related to this?
    Thanks in advance.
    Regards,
    Bharani

    Bharani,
    I am using the same FM in ECC 6.0.   Check your data declarations. There may be a change there.
    Regards
    MPersson
    * data declarations for sending Email
    DATA:   w_text(100) TYPE c.
    DATA    w_date(10) TYPE c.
    DATA    w_url(25) TYPE c.
    DATA:   w_subject(50)   TYPE c.
    DATA:   it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            it_contents     LIKE solisti1   OCCURS 0 WITH HEADER LINE,
            it_receivers    LIKE somlreci1  OCCURS 0 WITH HEADER LINE,
            it_attachment   LIKE solisti1   OCCURS 0 WITH HEADER LINE,
            gd_cnt          TYPE i,
            gd_sent_all(1)  TYPE c,
            gd_doc_data     LIKE sodocchgi1,
            gd_error        TYPE sy-subrc.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                                                     WITH HEADER LINE.
    * ~~~~~~~~~~~~~~ further along in your program ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      CLEAR w_url.
    * (SENDS Copy TO USER - confirms email ) 
        it_receivers-receiver   = w_url.
        it_receivers-rec_type   = 'U'.
        it_receivers-com_type   = 'INT'.
        it_receivers-notif_del  = 'X'.
        it_receivers-notif_ndel = 'X'.
        APPEND it_receivers.
      CLEAR gd_error.
    * Call the FM to post the message to SAPMAIL
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = gd_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = gd_sent_all
        TABLES
          packing_list               = it_packing_list
          contents_txt               = it_message
          receivers                  = it_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    * Store function module return code
      gd_error = sy-subrc.

  • Formatting the text file

    hi folks,
    I have an text file with records, each record has several field values  and there is blank space between them, I need to remove the blank spaces, is there a way that i can do with all records at one stretch? Instead doing it for each record.
    I know it is not related to SAP but I need some help in this regard as there are  a lot of records and formatting each record manually is extremely painful. This is a corrected  file manually on a spreadsheet and converted into the text file from thereon.
    Any help is really appreicated.
    Thanks,
    SK

    Hi,
    What you are trying to do with the text file after removing the spaces?
    Are you going to use in SAp Upload? or just to remove the spaces in text fiel?
    If you are using it for other purposes, you should not remove the spaces, because for that particular field no data will be entered.
    (generally we remove the other chars's like " by Find and Replace method)
    Generally we format the text files from the Excel to utilise it somewhere?
    And we won't remove the spaces for surther uses.
    Regards,
    Anji

  • Log Error Messages in the Text File using Flex

    Hi,
    I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
    I do not know how to achive such funcionality.
    looking forward for your help in this regard. Please have a look on the code as pasted below:
    private function onItemRollOver(evt : ListEvent) : void
                    try
                             var s:String= evt.target.Participation;
                               var partRange:Number = evt.rowIndex;
                            if (partRange == 2)
                                    dgCohorts.setStyle( "rollOverColor", "red" );
                            if (partRange == 7)
                                dgCohorts.setStyle( "rollOverColor", "green" );
                            dgCohorts.validateNow();
                       catch(e:Error)
                                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                callLaterErrorEvent.error = e;
                                systemManager.dispatchEvent(callLaterErrorEvent);
    Thanks,
    Vivek Jain

    Hi,
    I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
    I do not know how to achive such funcionality.
    looking forward for your help in this regard. Please have a look on the code as pasted below:
    private function onItemRollOver(evt : ListEvent) : void
                    try
                             var s:String= evt.target.Participation;
                               var partRange:Number = evt.rowIndex;
                            if (partRange == 2)
                                    dgCohorts.setStyle( "rollOverColor", "red" );
                            if (partRange == 7)
                                dgCohorts.setStyle( "rollOverColor", "green" );
                            dgCohorts.validateNow();
                       catch(e:Error)
                                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                callLaterErrorEvent.error = e;
                                systemManager.dispatchEvent(callLaterErrorEvent);
    Thanks,
    Vivek Jain

  • I can´t edit the text files with SAP BODS 3.2

    Hello
    I can not edit some text files 9-20 megabytes to replace two words in each file, the source is a text file and the same destination but with different name, because with the same name have been unable . My idea is to remove the original and stay with the new performing edition but that if he does , let me file this way:
    SALES_ORDERS_FULL_20140223_150051_006.xml ( ORIGINAL )
    should leave it with me so : SALES_ORDERS_FULL_20140223_150051_006.xml _OLD (AMENDED )
    but strangely leaves me so :
    MICROSOFT_SQL_SERVER_KCC-BI_REPO_KHSA_XI_REPO_KHSA_XI_1543_5434_2_3_Long_INVOICES_INCREMENTAL_20140225_034004_001_xml_dat.txt  (not deseased)
    The type of data you use is long since varchar not allow me because it cuts my data file , use varchar (50000000) but takes the information and short .
    I am using long data type , modify the file and I pass the name of the text files of sap bods for global variables. They are a series of files that are called by a while loop
    Thanks for your answers
    regards

    HIr
    Yes, first I convert long_to_varchar for edit, and convert varchar_to_long.
    I edit before before and later
    Thanks

  • FORM inconsistent in the text file

    Hi Experts,
    Thre is one SAP script form by name "YF_SS_SD_002" which is developed in client 301, which is development client & I want to test that in 302. But in 302 client when i tried to open that form using SE71 it says "Form YF_SS_SD_002 language EN is inconsistent in the text file".
    So by this i am not able to enter inside the form & see the changes in 302 for the changes which I made in 301 client.
    So please help me to reslove this.
    Thanks in advance,
    Santhosh

    import the version from 301  by logging into 302 and using teh copy from client option form the Utilities menu in SE71

  • How can i insert the text file in a hashSet???

    Hi, here's the code to feed the text file into the program, i need to put the words from the text file into a hashSet, im not too sure how to go about doing this, can anyone help please?
    import java.io.*;
    public class FileIn {
    BufferedReader in;
    public FileIn() {
    try {
    in = new BufferedReader(new FileReader("\\C:\\Program Files\\java.txt\\"));
    String line = in.readLine();
    System.out.println(line);
    in.close();
    } catch(IOException ioe) {
    System.out.println(ioe.toString());
    public static void main(String args[]) {
    FileIn newFile = new FileIn();
    }

    First you need to break each line into words. You'll need to decide on your rules for doing that. A simple approach would be to just break on whitespace. This assumes there are no hyphenated words at the end of a line. You'll also want to strip out punctuation.
    Once you've got a word (or an array of them, if you used String.split), then just iterate over it and call HashSet.add for each one. There might even be a helper function in java.util.Arrays or java.util.Collections or in HashSet to add everything from an array.
    http://java.sun.com/docs/books/tutorial/collections/

  • Batch list import is picky about line terminations in the text file

    After running into trouble trying to compose a batch list for import, I isolated the issue:
    The text file that you attempt to import must have "carriage return" characters at the end of each line. It can have a "carriage return" and a "line feed", but it cannot have only a "line feed".
    If you feed Final Cut a text file that does not meet this criteria, it will barf up this error message:
    One or more items on the header line do not match valid Browser column headers.
    Line terminators have been the cause of many a problem over the years! Typically, MSDOS/Windows systems tend to create text files that use a CR-LF combo. While Mac OS was typically just a CR. And UNIX systems have typically been just an LF. However, since Mac OS X is now a hybrid of older Mac ways, and UNIX ways, you can find mixed situations there. For example, the Mac OS X Text Edit program saves out files with just an LF, and thus can't be directly used to create batch lists for Final Cut.
    So, you need to be careful what means you use to create batch list text files.
    Hope this helps some poor soul some day!
    -Rick

    I am trying to export a batch list created in FCP 5.1 to someone with 6. I follow directions, export and save and then e-mail the file. When he tries to import it, he gets that message ("One or more items on the header line do not match valid Browser column headers"). But I have tried re-importing it from my desktop and have no problem. Is there a problem going with such simple data from 5.1 to 6? Is it possible that the e-mail transmission is corrupting the files?
    Thanks for suggestions.

Maybe you are looking for

  • I am getting a warning message when i am trying to create a host-named sitecollection.

    Hi guys,       I am trying to create a host-named site collection. I have created the root site collection. After that i have tried to create customer root site. I have doing this process with the guidance of this link. http://technet.microsoft.com/e

  • Regarding index and anla table

    Hi i have code as below and i have Select option input for fields bukrs, anln1 and anln2. SELECT bukrs      anln1     anln2     anlkl txt50 ktogr invnrz sernr deakt                    FROM anla                         INTO TABLE o_anla               

  • Table for Process type with BP Number of sold to party

    Hi Friends, Please share me Table name where i'll get the Process Type (Transaction Type) and Sold to Party Number or BP Guid of the transaction. I want to create Target group for BP's who are involve in Particular Transaction. For infoset creation i

  • When I get a new USB headset, how do I set up the voice so that it is optimal?

    I have a Mac Mini desktop computer and don't know how to make sure my sound is set up and optimized when I get a new headset. Would someone please tell me how to do this?

  • Deleting programs and files

    I recently hotsyncd and the computer asked if I wanted older information loaded.  Not thinking, I said YES.  I have no idea what was loaded, but the memory is so full that when I click on APPLICATIONS, it shuts off and reboots and says:  Extensions a