Start of line character?

I cannot get what appears to be a "beginning of line" character out of the first line of ASCII text that I send as a header to a binary file.  It looks like this (below) and the relevant portion of code is attached.  Will someone please point out what is probably obvious?
  ¿>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>user field>>>>>>>>>>>>>>>>>>>>>>>>>>>>
SITE NAME: Angela, Montana
STATE/PROVINCE: MT
COUNTRY: USA
>>> The following code in double quotes is REQUIRED to start the NIMS <<
>>> The next 3 lines contain values required for processing <<<<<<<<<<<<
>>> The lines after that are optional <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
"MTBB04a"  <-- 2 CHAR EXPERIMENT CODE + 3 CHAR SITE CODE + RUN LETTER
2605-04 2605-04  <-- SYSTEM BOX I.D.; MAG HEAD ID (if different)
500 0. <-- N-S Ex WIRE LENGTH (m); HEADING (deg E mag N)
500 90. <-- E-W Ey WIRE LENGTH (m); HEADING (deg E mag N)
44141          <-- N ELECTRODE ID
44142          <-- E ELECTRODE ID
44143          <-- S ELECTRODE ID
44144          <-- W ELECTRODE ID
6' Copper          <-- GROUND ELECTRODE INFO
COMMENTS: Can't get stupid open file characters (1st line, 1st 4 characters) out of the header. 
Solved!
Go to Solution.
Attachments:
LVsupport.vi ‏17 KB

Hi,
While writing to a binary file there is an option to prepend the size of the string. You will need to wire a false boolean to remove those "beginning of line" charactes!
Amit

Similar Messages

  • New-line character in stacked message pop-up

    I have run into a brick wall with this situation--
    Our clients are running Client/Server Forms 6i, and Web Forms 6i using Patch 10. They are about to upgrade web forms to the latest version 9.0.4.1.0 (10g).
    We have a few PLL routines that use the stacked message method:    Message('text here'); Message('  ',no_acknowledge);to display important error messages to the user. It is especially useful to display the multiple ORA- errors when an unexpected server error occurs.
    Throughout all versions of Client/Server forms, and even in our old version of Web forms, I can use chr(10) or another character to start each error message on a new line.
    Somewhere after Patch 10, Oracle has removed that capability. Instead, pop-up stacked messages word-wrap into a multi-line message, and display the new-line character as a box indicating an unprintable character. Our nicely formatted messages are a mess!
    I have been told I should use an alert, which supports chr(10) as the new line. However, this is a PLL routine, and I would have to create an alert in hundreds of forms just to accommodate this short-sightedness. The changes and subsequent testing and release issues make this an unworkable solution.
    I am clueless as to why this feature would be removed. Oracle support is treating it as an enhancement request. Any ideas?

    Steve,
    If you really have hundreeds of forms ... create one more - to display your messages. Make it modal and nice looking. Call it through the library. Design it to work both as [OK] message and as an users responce [Yes]/[No]/[Cancel].
    And honestly - I don't think message(); message() is the best way to display messages. Whoever designed the application should've think about alerts with standartized naming convention, so they can be handled easily through the PLL.
    Venko

  • Problem with new-line-character and java.io.LineNumberReader under AIX

    Hi folks,
    I got the following problem: I wrote a little parser that reads in a plain-text, tabulator-separated, line-formatted logfile (and later on safes the data to a 2-dimensional Vector). This logfile was originally generated by an AIX ksh script, however, I copied it on my Windows machine to work with it (for I'm using a Java editor that runs under Win Systems).
    For any reason, Windows, and what is worse Java too, seems not to recognize correctly the new-line character (in the API it is written that this should be a newline '\n' or a carriage-return '\r' or one followed by the other) that marks the end of a line in the logfile.
    Also, when I'm opening the logfile with the "Notepad"-editor, this special character does not seem to be recognized, every line is inserted right after the other.
    On the other side, when I open the logfile with the built-in editor in the CMD-Shell ("Dos-shell"), the newline chars seem to be recognized correctly.
    But when start my parser on the AIX-machine the newline does not seem to be recognized correctly again.
    I tried to read in the logfile with MS-Excel and safe it as a plain-text, tabulator-separated, line-formatted logfile again, with such files my parser works fine both on the AIX as it does on Windows.
    Any ideas? Anybody got over the same problem already?
    Greetz FK

    Under windows, text files' lines are usually delimited by \r\n,
    under Unix/Linux/AIX etc. \n
    and under Mac \r.
    I recommend to use the following editors, which are capable to handle files with Unix and Windows-styled line-delimiters or convert between these types:
    Programmer's File Editor (PFE; available on Windows)
    The Nirvana Editor (http://www.nedit.org/; available on Unix, MAcOS, Windows)
    (BTW good old vim can handle that too. Transferring text files to windows in order to edit them, even using Excel for this purpose means your being a UNIX newbie, (I mean no offense by writing this) so vim is probably beyond your reach for the moment.)
    Java normally assumes the platform's line delimiters where it is running, so if you transferred the file from Unix to Windows might be distrurbing.

  • Error starting at line 1 in command

    Hi,
    Here is the log from Sql developer
    http://dl.dropbox.com/u/40211031/log4.txt
    but when directly running the same scripts, I got no problems
    Edited by: Hua Min on Mar 20, 2012 9:32 AM

    This is like the OP looks like
    <tt>
    Error starting at line 1 in command:
    i n s e r t   i n t o   e n t _ t i t l e   v a l u e s   ( ' C h i e f   E x e c u t i v e s ,   G e n e r a l   M a n a g e r s   a n d   L e g i s l a t o r s ' , ' C h i e f   E x e c u t i v e   o r   M a n a g i n g   D i r e c t o r ' ) 
    Error report:
    Unknown Command
    Error starting at line 2 in command:
    Error report:
    Unknown Command
    Error starting at line 3 in command:
     i n s e r t   i n t o   e n t _ t i t l e   v a l u e s   ( ' C h i e f   E x e c u t i v e s ,   G e n e r a l   M a n a g e r s   a n d   L e g i s l a t o r s ' , ' C o r p o r a t e   G e n e r a l   M a n a g e r ' ) 
    Error report:
    Unknown Command
    </tt>
    Regards
    Etbin
    Edited by: Etbin on 19.3.2012 20:30
    Maybe multibyte character set related (a SQL Developer malfunction ?)

  • Want to know how to check for new line character in text file

    Hi All,
    I`m trying to read data from text file. However I`m not sure whether the data is in 1st line or nth line. Now I`m trying to read the text from the readline. But if text is "" and not NULL then my code fails. So I want to know how to check for new line character and go to next line to find the data. Please help.
    Thanks
    static int readandwriteFile(Logger logger,String filepath){
              BufferedWriter out = null;
              BufferedReader in = null;
              File fr = null;
              int get_count = 0;
              try     {
              if(new File(filepath).exists())
              fr= new File(filepath);
                        System.out.println("FileName: "+fr);
                   if(fr != null){
    in = new BufferedReader(new FileReader(fr));
                             String text = in.readLine();
                             if(text != null){
                             get_count = Integer.parseInt(text);
                             in.close();
                             else{
                                  get_count = 0;
         else{                    
    out = new BufferedWriter(new FileWriter(filepath));
         out.write("0");
                out.close();
                   }          //Reading of the row count file ended.
              catch(Exception e) {
                   e.printStackTrace();
              finally {
                   try{               if (in != null) {
                             in.close();
              if (out != null) {
                             out.close();
              catch(Exception e) {
                        e.printStackTrace();
              return get_count;
         }

    You are calling the readline() only once which means you are reading only the first line from the file...
    Use a loop (Do-While preferably)
    do{
    //your code
    }while(text == "")

  • Next line character error

    Hello All,
    I am trying to concatenate two strings along with next line character. I am using the following syntax.
    v_str1||chr(13)||chr(10)||v_str2;
    The problem I am facing is if the string is like greater than about 40 characters, then the new line character is not getting appended . Instead they are concatenated together without the new line character.
    I also tried using only chr(10). But it is not working. Can anybody plz suggest me a soln to this.
    Thanks,
    Myway
    Edited by: myway on Mar 29, 2009 3:16 PM

    Hi,
    Please post your code that raises the problem, I use this simple example and works fine:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> select 'line 1' || chr(13) || 'line 2' from dual;
    'LINE1'||CHR(13)||'LINE2'
    line 1
    line 2
    SQL>
    SQL> SET SERVEROUTPUT ON
    SQL> DECLARE
      2     v_string VARCHAR2(4000);
      3     v_line1  VARCHAR2(4000) := 'LINE 1';
      4     v_line2  VARCHAR2(4000) := 'LINE 2';
      5     c_line_break CONSTANT VARCHAR2(1) := CHR(13);
      6  BEGIN
      7     v_string := v_line1 || c_line_break || v_line2;
      8     dbms_output.put_line(v_string);
      9  END;
    10  /
    LINE 1
    LINE 2
    PL/SQL procedure successfully completed
    SQL> Regards,

  • New line character and carriage return in XML, please help, thanks

    In XML, "&#10;" is only the new line character. I have tried that. If you put that in your XML, for example:
    <tag>line1&#10;line2&#10;line3</tag>
    You will get the output as follow:
    line1
    ____line2
    ________line3
    (where ___ represents space)
    The output that I want is actually like:
    line1
    line2
    line3
    So I would like to ask how I can do this.
    Thanks,
    Jackie

    while parsing your XML file you can directly suppress these newline and similar things in characters() method of SAX parser.
    you can opt to do nothing when you encounter them else if it is normal character then use it to print it.

  • Problem with CDATA and new line character

    I parse a xml document with org.w3c.dom, the document contain a CDATA section in which there are more lines of text, each line is terminated with the new line character (\n).
    Example:
    <nota>
    <[CDATA[
    first line
    second line
    third line
    ]]>
    </nota>
    When a parse this node:
    Text txt_nota=(Text)elm_nota.getFirstChild();
    String nota=txt_nota.getData();
    the value returned is one string with no new line characters, example:
    "first linesecond linethird line"
    what's wrong?

    Because i use the string nota into a jsp page and i print the string nota into a textarea and the text is with no newline, example:
    <textarea name="nota" rows="4" cols="60"><%= nota %></textarea>
    the text into textarea is:
    first linesecond linethird line
    but i want that the text displayed into textarea is equal the text into the CDATA section:
    first line
    second line
    third line

  • Need help in how to print new line character in unix using java

    Hi All,
    I use the printstream class to print some line in a text using java.
    here is the code:
       FileOutputStream out; // declare a file output object
            PrintStream p; // declare a print stream object
                    p.print("\t");
                    p.print(date);
                    p.print("\t\t");
                    p.print(RecCount);
                    p.println("\n");when i use this and output of this character in windows is
    date RecCount
    22-07-2007 23456
    when i use the same code in unix it shows the following output:
    date RecCount[]22-07-2007
    it wont accept the new line character could any one give me an idea to solve this problem.

    PrintStream has a println() method. Use that. Or System.getProperty("line.separator").
    Because a newline char doesn't necessarily specify a line break. It's system-dependent.

  • How to insert new line character?

    Hi all,
    I have two lines to print.
    out.println("Available number of columns="+cols);
    out.println("Number of columns must be present=10");My problem is:
    i want both the lines to be printed one below the other. But, it is displayed in one single line.....
    Can anyone please tell me how to insert new line character?
    I tried with \n, '\n' and \r\n but, in vain......
    Thanks for your time.
    Regards,
    Ashvini

    You should never use "\n" directly.
    The line separator character is different on different operating systems.
    And putting quotes around it in your string will make absolutely no difference in the JSP.
    To find out what the line separator is you should use System.getProperty("line.separator");
    The JSPWriter and PrintWriter classes will automatically use this property with a println statement, so a println will always finish with a line separator.
    The issue here was that HTML by default ignores all whitespace.
    The solutions provided
    - use a <br> tag instead of a carriage return
    - use <pre> tags, which tells the browser not to ignore whitespace. That can be troublesome in JSP which generates a lot of extraneous carriage returns into the code.
    Cheers,
    evnafets

  • ADF: how to insert new line character in column of VO?

    Hi Everyone,
    Im using Jdev 11G.
    i have a VO with 5 columns displayed on the ADF page.(VO has total 8 columns)
    1 column is the combination of 3 columns. i concatenated the 3 columns and added new line character after each column chr(13).
    VO query is working very fine in Toad. the columnn displays each concatenated column value after a new line character but the same query is not working in ADF.
    The column which is concatenating 3 columns and has to display with new line character is not displaying new line character its just concatenating the 3 values and displaying it on the page.
    wat can be the solution for this in ADF?
    Thank you.

    Setting escape="false" will allow putting html <BR> in the column and it will display ok however if your table allows export to excel the <BR> gets exported and displays as text in your exported file. Also & will export as &amp; To prevent that, use your original text without the escape=false setting and insert LF or CR (10 or 13 character), then add inline style of white-space: pre-line; to column or to style class in your skin. That will cause all line feeds to wrap but will export to excel without mixing html in the export.
    http://www.w3schools.com/cssref/pr_text_white-space.asp
    Edited by: Don Kleppinger on Jan 14, 2013 4:06 PM

  • NEW LINE CHARACTER

    i am trying to load text into the BASIC TEXT of the material. The input file has matnr and the text. The file we loaded is fine. But in the text editor the # for new line character appears and this is causing problem while writing the text in a sapscript.
    so i am trying to remove the # for the new line character while we load the file. i am using
    data: c_tab like CL_ABAP_CHAR_UTILITIES=>CR_LF. to split the file and it is not being recognized. The input file is a tab delimited text file from excel. and it has " at the begining and ending.
    thanks in advance

    that is problem with Xls , If u have text with any Delimitors then u will get this kind of Stuff.
    prabhu,peram then i will get in text file as "prabhu,peram".
    Regards
    Prabhu

  • New line character in cipher text?

    Friends,
    I am encrypting a text in Triple DES/CBC mode/Nopadding mode. the length of text is 6500 bytes. in the cipher text that i get, it has new-line character(\n) & carriage return characters. As a result of this i m unable to read the cipher text from a C program(as it is not fully reading the cipher text). is there any methodology to overcome this problem. is there any way to avoid the new-line & carriage return characters in cipher text.
    Also is there any criteria like, the plaintext can be only max of this much bytes?
    Thanks in Advance

    The result of your encryption is bytes and not characters so your C program should process it as bytes and not as characters then bytes '\r' and '\n' will not be interpretted.
    It would be interresting to see your C code.

  • New Line Character in SQL Query

    Dear All,
    I am wondering if some one tell me how to insert new line character in the SQL Query Output for example I need out put in the following format. Every line on new line.
    The total count is:
    Registration: 1111
    Fees paid: 2222
    Admission Done: 3333
    Total:4000
    Many thanks

    Hi
    SQL> select
      2  'The total count is:
      3  Registration: 1111
      4  Fees paid: 2222
      5  Admission Done: 3333
      6  Total:4000
      7  ' dummy_txt from dual
      8  /
    DUMMY_TXT
    The total count is:
    Registration: 1111
    Fees paid: 2222
    Admission Done: 3333
    Total:4000
    SQL>
    SQL> select 'a'||chr(10)||'b' from dual;
    'A'
    a
    b
    SQL> T

  • New Line character in BO DS

    Hi Experts,
    Can you please help me in telling the new line character in Data Services, so that I can use that in script.
    I tried using \n for new line, but of no use.
    Regards,
    vivek

    Hi Shine SS,
    Had same requirement and your solution worked.
    Thanks.

Maybe you are looking for

  • Iphone 6 call waiting beep not working

    When I am already on a telephone call, and a second call comes in, the caller is not hearing a beep indicating that I am already on the phone. All 3 phones involved are Iphones. Any ideas on how to fix this? Thanks

  • How do I change the default app for opening a file;

    If I right click on a file in finder, it tells me what the default app for opening the file is.  it also gives me a short list of other apps. I would like to change the defaults for several file types, and also delete one app from the short list and

  • Conditional Page break in Adobe forms.

    Hi all,           In Adobe forms i am displaying the purchase order details.i want to create a conditional page break..    i am displaying purchase order header details below that i am displaying the item details of the purchase order.    i one page.

  • Problem about DBMS_OBFUSCATION_TOOLKIT

    Does DBMS_OBFUSCATION_TOOLKIT can compile on Oracle 7.3.4?

  • ? I'm having trouble downloading Adobe Flash Player...help!

    I'm having trouble downloading Adobe Flash Player.  Can someone take me through it, please?  Thanks.