XLS to I delimited txt file

i created a report to download values from a table into xls file.and when i open the file in txt,its opening in tab delimited format.
now,instead of that i want the file to be opened in |(pipe) delimited txt file.
can any one help me in this regard.

Hi Prashanth,
First check in ur download FM there is a parameter called has_field_seperator is available r not ,
if its there just copy that parameter and paste in ur FM where ur using,,
has_field_seperator = '|'
just paste like this in ur FM , before pasting check whether this parameter is available r not in ur version..
Hi Prashanth did ur issue was resolved by this solution,
if possible try to reward for useful answers
Thanks
Naveen khan
Message was edited by:
        Pattan Naveen

Similar Messages

  • Dowloading tab delimited .txt file

    Hello friends,
    I am downloading one tab delimited .txt file from internal table using OPEN dataset , READ dataset.
    But output looks like...
    4500603096     20081008[]4500603095     20081003[]4500603087     20080924[]4500603083     20080910[]4500603084     20080910[]
    and I want output as follows in .TXT file
    4500603096     20081008
    4500603095     20081003
    4500603087     20080924
    4500603083     20080910
    4500603084     20080910
    While same file i open with excel it works correctly.
    Why this is happening?
    My code is below...
    OPEN DATASET l_file FOR OUTPUT IN TEXT MODE.
          IF sy-subrc = 0.
            LOOP AT i_po_extarct INTO lw_po_extract.
              CONCATENATE lw_po_extract-ebeln
                          lw_po_extract-aedat
                  INTO l_string
                  SEPARATED BY wc_tab.
    *         Get the logs to the file.
              TRANSFER l_string TO l_file.
            ENDLOOP.
    *       Close the dataset
            CLOSE DATASET l_file.
          ELSE.
            MESSAGE e303(me) WITH 'File not found'.
          ENDIF.
    note : l_string and l_file are type STRING.
    Edited by: Ronny Hanks on Oct 21, 2008 10:39 AM
    Edited by: Ronny Hanks on Oct 21, 2008 10:40 AM

    OPEN DATASET a_plant FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        DO.
          READ DATASET  a_plant INTO w_string.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          SPLIT w_string AT cl_abap_char_utilities=>horizontal_tab
          INTO w_txt1-werks w_txt1-name1 w_txt1-country .
          MOVE w_txt1 TO it_plant.
          APPEND it_plant.
          CLEAR w_txt1.
          CLEAR w_string.
        ENDDO.
        CLOSE DATASET a_plant.
    hope it will useful to you

  • Upload/Download from unix - give easy exammple for tab delimited .TXT file

    Hello experts,
    I have 2 requirements.
    1. I want to upload a tab delimited .txt file from local PC to UNIX server.
    2. I want to Read same file, then some process and get result to the same location. (output file name should be diffrent)
    How i can fulfill these two requirements?
    Regards,
    RH

    Hi,
    upload a tab delimited .txt file from local PC to UNIX server
    Please go through the below logic this will help you,
    *& Report  Z10_SHAD_V_UPLD_PR_APP_SERV
    report  z10_shad_v_upld_pr_app_serv message-id zmessage.
    *&--INCLUDE FOR DECLARATION
    include z10_upld_top.
    *&--INCLUDE FOR ALL FORMS
    include z10_upld_forms.
    start-of-selection.
    *&--PERFORM FOR UPLOADING LOGIC.
    perform z10_upld.
    end-of-selection.
    *&  Include           Z10_UPLD_TOP
    *&--STRUCTURE FOR INTERNAL TABLE.
    *&--THAT IS GOING TO HOLD PRESENTATION SERVER FILE DATA.
    data:begin of wa,
    name(40) ,
    end of wa.
    *&--INTERNAL TABLE THAT IS GOING TO HOLD PRESENTATION SERVER DATA.
    data: it_tab like wa occurs 0 with header line.
    *&--SELECTION-SCREEN FOR GETTING THE PATH OF PRESENTATION LAYER
    selection-screen begin of block abc with frame title text-001.
    parameters: p_string(128) type c,
                      p_st(128) type c,
    selection-screen end of block abc.
    data: file_path type rlgrap-filename.
    data: p_path type rlgrap-filename,
          filename1 type string,
          file_name like ibipparms-path,
          v_path like dxfields-longpath,
          l_path type string.
    *&--PROVIDING F4 KEY FOR THE SCREEN FIELD THAT IS GOING TO
    *&--HAVE THE PRESENTATION SERVER FILE PATH
    at selection-screen on value-request for p_string.
      call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
      FIELD_NAME          = ' '
       importing
         file_name           = file_name
      p_string = file_name.
    file_path = p_string.
    p_path = file_path.
      filename1 = file_name.
    *&--PROVIDING F4 KEY FOR THE SCREEN FIELD THAT IS GOING TO
    *&--HAVE THE APPLICATION SERVER FILE PATH
    at selection-screen on value-request for p_st.
    call function 'F4_DXFILENAME_TOPRECURSION'
    EXPORTING
      I_LOCATION_FLAG       = ' '
      I_SERVER              = '?'
      I_PATH                =
      FILEMASK              = '.'
      FILEOPERATION         = 'R'
    importing
      O_LOCATION_FLAG       =
      O_SERVER              =
       o_path                = v_path
      ABEND_FLAG            =
    exceptions
       rfc_error             = 1
       error_with_gui        = 2
       others                = 3
    p_st = v_path.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    *&      Form  Z10_UPLD
          text
    -->  p1        text
    <--  p2        text
    form z10_upld .
    if not p_string is initial.
    *&--FUNCTION MODULE THAT IS GOING TO UPLOAD THE PRESENTATION SERVER FILE TO
    *&--APPLICATION SERVER.
    call function 'GUI_UPLOAD'
      exporting
       filename                      = filename1
       filetype                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      = it_tab[]
    exceptions
       file_open_error               = 1
       file_read_error               = 2
       no_batch                      = 3
       gui_refuse_filetransfer       = 4
       invalid_type                  = 5
       no_authority                  = 6
       unknown_error                 = 7
       bad_data_format               = 8
       header_not_allowed            = 9
       separator_not_allowed         = 10
       header_too_long               = 11
       unknown_dp_error              = 12
       access_denied                 = 13
       dp_out_of_memory              = 14
       disk_full                     = 15
       dp_timeout                    = 16
       others                        = 17
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    *path = filename1.
    open dataset p_st in text mode for output encoding default.
      if sy-subrc ne 0.
        close dataset p_st.
        exit.
      endif.
      if sy-subrc eq 0.
      loop at it_tab.
        transfer it_tab to p_st.
      endloop.
      close dataset p_st.
      message i000.
      endif.
    endif.
    endform.                    " Z10_UPLD
    Hope this helps.

  • Exporting Table data to delimited txt file

    I am trying to import the table data into delimited text file, I am running the following code from Tom Kyte's website on the server. When I run the procedure after I run the function it is not creating any .dat file for me.
    I have also checked for the parameter 'utl_file_dir' in the database and it is set to the correct path. Is there anything that I am missing??
    any suggestions/inputs would help.
    create or replace function dump_csv( p_query in varchar2,
    p_separator in varchar2
    default ',',
    p_dir in varchar2 ,
    p_filename in varchar2 )
    return number
    AUTHID CURRENT_USER
    is
    l_output utl_file.file_type;
    l_theCursor integer default dbms_sql.open_cursor;
    l_columnValue varchar2(2000);
    l_status integer;
    l_colCnt number default 0;
    l_separator varchar2(10) default '';
    l_cnt number default 0;
    begin
    l_output := utl_file.fopen( p_dir, p_filename, 'w' );
    dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
    for i in 1 .. 255 loop
    begin
    dbms_sql.define_column( l_theCursor, i,
    l_columnValue, 2000 );
    l_colCnt := i;
    exception
    when others then
    if ( sqlcode = -1007 ) then exit;
    else
    raise;
    end if;
    end;
    end loop;
    dbms_sql.define_column( l_theCursor, 1, l_columnValue,
    2000 );
    l_status := dbms_sql.execute(l_theCursor);
    loop
    exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
    l_separator := '';
    for i in 1 .. l_colCnt loop
    dbms_sql.column_value( l_theCursor, i,
    l_columnValue );
    utl_file.put( l_output, l_separator ||
    l_columnValue );
    l_separator := p_separator;
    end loop;
    utl_file.new_line( l_output );
    l_cnt := l_cnt+1;
    end loop;
    dbms_sql.close_cursor(l_theCursor);
    utl_file.fclose( l_output );
    return l_cnt;
    end dump_csv;
    create or replace procedure test_dump_csv
    as
    l_rows number;
    begin
    l_rows := dump_csv( 'select *
    from doctype
    where rownum < 25',
    ',', '/tmp', 'test.dat' );
    end;
    /

    Hi,
    It works for me...
    SQL> select dump_csv('select * from dba_users',',','/tmp','teste.txt') from dual;
    DUMP_CSV('SELECT*FROMDBA_USERS',',','/TMP','TESTE.TXT')
                                                       149
    SQL> show parameter utl_file_dir
    NAME                                 TYPE        VALUE
    utl_file_dir                         string      /tmp
    oracle@icaro:/tmp> ls -l teste.txt
    -rw-r--r--  1 rps users 394353 2006-07-31 17:40 teste.txtJust for information:
    I'm using SUSE LINUX 10 and Oracle 10g 10.1.0.2
    Cheers
    Message was edited by:
    Legatti

  • Help needed saving text members to TAB delimited txt file

    I have 7 text memebrs each containing several lines of text
    that were pulled in and sorted from a TAB delimited text file.
    What I'd like to know is, is there any way to convert those
    text members back into the TAB delimited format from which they
    came? I'd like to be able to pull in the data, let it be edited to
    some extent, then saved back out..... and I'm not too sure how to
    go about it.
    Example of txt file:
    ID_No Name Age
    1 Phil 26
    2 Sam 34
    3 Mary 21
    They're then sorted in to text files of ID_No, Name, and Age,
    with the lists of the relevent items in each.
    Like.....
    ID_No
    1
    2
    3
    Name
    Phil
    Sam
    Mary
    Age
    26
    34
    21
    Certain lines of these text members change, depending on what
    the user selects. I'd like to put these sections back in their
    original TAB delimited format, but with any changed data replacing
    the old, so next ime the app is opened the new data is pulled in
    from the txt file.
    I know I'm probably going about this the wrong way, but it's
    the only way I know so far lol
    Any ideas?

    global filex, idlst, namelst, agelst
    on readtabline (str)
    tmpstr = ""
    y = 1
    repeat with x = 1 to the number of chars in str do
    if str.char[x] = tab then
    case y of
    1 : idlst.add (tmpstr)
    2 : namelst.add (tmpstr)
    3 : agelst.add (tmpstr)
    end case
    tmpstr = ""
    y = y + 1
    else
    tmpstr = tmpstr & str.char[x]
    end if
    end repeat
    agelst.add (tmpstr)
    end
    on exitFrame me
    idlst = [] --set up some lists to hold that data we read in
    namelst = []
    agelst = []
    filex = new (xtra "fileio")
    filex.openfile ("t.txt", 1)
    indata = filex.readfile() -- read the data in
    filex.closefile()
    filex = void
    repeat with x = 1 to the number of lines in indata do
    readtabline(indata.line[x]) --seprate it into its diffrent
    elements
    end repeat
    -- you now have your data sorted in to three list of id, age
    and name
    -- so you would now do what ever editing you wanted to do
    --now to write it out to a new file
    filex = new (xtra "fileio")
    filex.createfile (the moviepath & "tout.txt")
    filex.openfile (the moviepath & "tout.txt", 2)
    repeat with x = 1 to idlst.count() do
    filex.writestring (idlst[x] & tab & namelst[x] &
    tab & agelst[x] & return)
    end repeat
    filex.closefile()
    end
    I tested this on your exact scenario and it worked a brezze
    hope it helps
    Regards
    David

  • Why can't I import a .txt file to a PDF created in Livecycle Designer?

    I am trying to import data into a PDF, simple stuff like names and addresses. I've saved my spreadsheet as a tab delimited .txt file, but when i go to import data in the PDF, .txt files are not an option. Is there a setting in Livecycle or in Acrobat that I haven't found?

    Is there a way for me to import the data to a PDF created in LiveCycle designer?

  • How to use Automator to batch convert xls/xlsx files into tab OR pipe delimited text file.

    If you have answer, please provide specific and detailed steps.
    Situation 1:
    Start:
    150+ files in .xls OR .xlsx format
    data contains many characters EXCEPT "Tab"
    Process:
    Use Automator to:
    Select Files from Finder window
    Convert selected files from xls/xlsx to TAB-DELIMITED file format
    End:
    150+ files in .txt format
    files have identical names to those from "Start:"
    data is TAB-DELIMITED
    Situation 2:
    Start:
    150+ files in .xls OR .xlsx format
    data contains many characters EXCEPT | (pipe, vertical bar)
    Process:
    Use Automator to:
    Select Files from Finder window
    Convert selected files from xls/xlsx to |-delimited file format
    End:
    150+ files in .txt format
    files have identical names to those from "Start:"
    data is "|"-delimited

    If your post is addressed to my response then the answer is you have to write your own or search on-line to see if something exists to do what you want.
    As you note there is no pre-built script for this.
    regards
    Message was edited by: Frank Caggiano - Are you certain there isn;t something in Excel to export as a tab delimited file?
    This link Convert An Excel Spreadsheet To A Tab Delimited Text File seems to indicate that the function is in Excel already.

  • I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    From the Finder menu select 'Secure Empty Trash'. If this or the suggestion above doesn't resolve the problem take a look at the various suggestions in this link:
    http://www.thexlab.com/faqs/trash.html

  • How can I convert an xls file to a txt file

    I would like to know How I can convert an xls file to a txt file.

    Look for this on google.com:
    "Java Excel API"
    With that, it would be easy to convert an excel file to flat text.

  • What is the best, most efficient way to read a .xls File and create a pipe-delimited .csv File?

    What is the best and most efficient way to read a .xls File and create a pipe-delimited .csv File?
    Thanks in advance for your review and am hopeful for a reply.
    ITBobbyP85

    You should have no trouble doing this in SSIS. Simply add a data flow with connection managers to an existing .xls file (excel connection manager) and a new .csv file (flat file). Add a source to the xls and destination to the csv, and set the destination
    csv parameter "delay validation" to true. Use an expression to define the name of the new .csv file.
    In the flat file connection manager, set the column delimiter to the pipe character.

  • Export Excel Table in .txt File with space delimited text in UNICODE Format

    Hi all
    I've a big unsolved problem: I would like to convert an Excel table with some laboratory data in it (descriptions as text, numbers, variables with some GREEK LETTERS, ...). The output should be a formatted text with a clear structure. A very good solution is
    given by the converter in Excel "Save As" .prn File. All works fine, the formattation is perfect (it does not matter if some parts are cutted because are too long), but unfortunately the greek letters are converted into "?"!!!
    I've tried to convert my .xlsx File in .txt File with formatting Unicode and the greek letters are still there! But in this case the format is not good, the structure of a table is gone!
    Do you know how to save an Excel file in .prn but with Unicode formatting instead of ANSI or a .txt with space delimited text?
    Thanks a lot to everyone that can help me!
    M.L.C.

    This solution works in Excel/Access 2013.
    Link the Excel table into Access.
    In Access, right-click the linked table in the Navigation Pane, point your mouse cursor to "Export", and then choose "Text File" in the sub-menu.
    Name the file, and then under "Specify export options", check "Export data with formatting and layout".  Click "OK".
    Choose either Unicode or Unicode (UTF-8) encoding.  Click "OK".
    Click "Close" to complete the export operation.

  • Issue in .txt file saving from .xls to .txt

    Hi,
    I am downloading output in to excel sheet. when i am downloading excel data into tabdelimited.txt file i am getting '  "  ' in text file but in excel i am not getting this .
    anybody can tell me how to fix this issue. Initially i have to download the data into excel sheet only this is my requirement.
    Thanks,
    Maheedhar

    Hi,
    Excel normally does this if there is an embedded delimiter within the cell, i.e. a comma within the text and you are delimiting by a comma. Try using a TAB delimiter and you are less likely to see this.
    Darren

  • Convert xls to comma delimited

    hi all...
    i have a xls file which needs to be converted to comma delimited dat file.
    can somebody help me on this.
    thnks,
    i need it programatically pls!!

    Check the below program :
    Upload xls file and you can see .txt file ( with comma delimted)
    Input ( XLS file )
    aaa     1245     2344     233     qwww
    233     2222     qwww     www     www
    Output ( .txt file with comma delimted)
    aaa,1245,2344,233,qwww
    233,2222,qwww,www,www
    REPORT ZFII_MISSING_FILE_UPLOAD no standard page heading.
    data : begin of i_text occurs 0,
           text(1024) type c,
           end of i_text.
    Internal table for File data
    data : begin of i_data occurs 0,
           field1(10) type c,
           field2(10) type c,
           field3(10) type c,
           field4(10) type c,
           field5(10) type c,
           end of i_data.
    data : begin of i_download occurs 0,
           text(1024) type c,
           end of i_download.
    data : v_lines type sy-index.
    data : g_repid like sy-repid.
    data v_file type string.
    data: itab like alsmex_tabline occurs 0 with header line.
    data : g_line like sy-index,
           g_line1 like sy-index,
           $v_start_col         type i value '1',
           $v_start_row         type i value '1',
           $v_end_col           type i value '256',
           $v_end_row           type i value '65536',
           gd_currentrow type i.
    selection-screen : begin of block blk with frame title text.
    parameters : p_file like rlgrap-filename obligatory.
    selection-screen : end of block blk.
    initialization.
      g_repid = sy-repid.
    at selection-screen on value-request for p_file.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                PROGRAM_NAME = g_repid
           IMPORTING
                FILE_NAME    = p_file.
    start-of-selection.
    Uploading the data into Internal Table
      perform upload_data.
    download the file into comma delimted file.
      perform download_data.
    *&      Form  upload_data
          text
    -->  p1        text
    <--  p2        text
    FORM upload_data.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                FILENAME                = p_file
                I_BEGIN_COL             = $v_start_col
                I_BEGIN_ROW             = $v_start_row
                I_END_COL               = $v_end_col
                I_END_ROW               = $v_end_row
           TABLES
                INTERN                  = itab
           EXCEPTIONS
                INCONSISTENT_PARAMETERS = 1
                UPLOAD_OLE              = 2
                OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        write:/10 'File '.
      ENDIF.
      if sy-subrc eq 0.
        read table itab index 1.
        gd_currentrow = itab-row.
        loop at itab.
          if itab-row ne gd_currentrow.
            append i_data.
            clear i_data.
            gd_currentrow = itab-row.
          endif.
          case itab-col.
            when '0001'.
    first Field
              i_data-field1 = itab-value.
    second field
            when '0002'.
              i_data-field2 = itab-value.
    Third field
            when '0003'.
              i_data-field3 = itab-value.
    fourth field
            when '0004'.
              i_data-field4 = itab-value.
    fifth field
            when '0005'.
              i_data-field5 = itab-value.
          endcase.
        endloop.
      endif.
      append i_data.
    ENDFORM.                    " upload_data
    *&      Form  download_data
          text
    -->  p1        text
    <--  p2        text
    FORM download_data.
    loop at i_data.
    concatenate i_data-field1 ',' i_data-field2 ',' i_data-field3 ','
                i_data-field4 ',' i_data-field5 into i_download-text.
    append i_download.
    clear : i_download,
            i_data.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                  =
        FILENAME                      =
        'C:\Documents and Settings\smaramreddy\Desktop\fff.txt'
       FILETYPE                      = 'ASC'
      APPEND                        = ' '
      WRITE_FIELD_SEPARATOR         = ' '
      HEADER                        = '00'
      TRUNC_TRAILING_BLANKS         = ' '
      WRITE_LF                      = 'X'
      COL_SELECT                    = ' '
      COL_SELECT_MASK               = ' '
      DAT_MODE                      = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        DATA_TAB                      = i_download
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " download_data
    Thanks
    Seshu

  • How to open and edit "*.txt" file with "Notepad"

    Hello guys!
    I'm facing problem with SharePoint 2010 Enterprise and got no clue how to solve it.
    What I want to do is to open "*.txt" (which is placed to "Documents Library") in "Notepad", so I could edit it and save (publish) directly to SharePoint from "Notepad".
    If I upload any Microsoft office File, such as "*.docx", "*.xls", etc - it works as it should - document opens in appropriate application and everybody is happy.
    But, when I create documents library, put some "*.txt" file there and click on it - it opens in new browser's tab as text, so I cannot edit the file.
    What I tried to do is to activate feature "Open Documents in Client Applications by Default" - not happy.
    Edit "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\DOCICON.XML" - I've modified "txt" entry as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <DocIcons>
        <ByProgID>
        </ByProgID>
        <ByExtension>
    <Mapping Key="txt" Value="ictxt.gif" EditText="Notepad" OpenControl="SharePoint.OpenDocuments"/>
        </ByExtension>
        <Default>
            <Mapping Value="icgen.gif"/>
        </Default>
    </DocIcons>
    Still not happy.
    So, how do I make this stuff work?

    Found this link which has more information on this scenario:
    http://sharepoint.stackexchange.com/questions/1427/open-txt-file-in-notepad-from-sharepoint
    A programmatic workaround:
    http://weblogs.asp.net/bsimser/archive/2005/01/24/359911.aspx
    Andrew Milsark, MCITP,MCTS
    Fpweb.net - The SharePoint Hosting Pioneer
    Blog : http://blog.fpweb.net
    Twitter : http://www.twitter.com/amilsark

  • I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?

    I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
    Attachments:
    try2.txt ‏2 KB
    read_array.vi ‏21 KB

    The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
    Here are some of your choices to fix your problem.
    1. Change the source file to a tab delimited file. Your VI will then run as is.
    2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
    3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
    Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
    Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.

Maybe you are looking for

  • Best Buy Gift Card Reserve Offer FAQs

    Best Buy Gift Card Reserve Offer Registration Period 2/2/2014 – 2/15/2014 FAQs How does the Best Buy Gift Card Reserve Offer 2014 work? Reserve a $50 Best Buy gift card from 2/2/14 at 12:00:01 a.m. CT to 2/15/14 at 11:59:59 p.m. CT. Get it when you b

  • How do I get a pdf file to print?

    The pdf file is viewable on my screen but when I ask the computer to print it on my Canon MX922 printer, the printer does not respond and nothing happens.

  • Hyperlink not Responded in Acrobat Reader 9.0

    Hi all, I have installed Adobe Reader 9.0 recently. But in hyperlink that points to another PDF document has not been responded. No error message has not been given even. It worked with Acrobat Reader 7.0 also. In Acrobat Reader 7.0 if you click the

  • Time stamp to excel sheet

    I want to print time stamp every second to an excel sheet, tried 1000 of times to add row to the sheet but failed, any clue how to? Attachments: time stamp in a row.vi ‏67 KB

  • Calling a procedure that returns a cursor inside a procedure

    Hi, I have two stored procedures. They both return a cursor as output variables. On the other hand I have another stored procedure that calls these procedures and return their results again an output variable. I know that this seems quite odd to be w