Control M at the end of the line

This is the peace of my code in parsing the file line by line.
BufferedReader br = new BufferedReader(new FileReader(file));
char[] chars = new char[500];
String temp = new String(chars);
if ((temp.trim()).length() == 0) {
     throw new Exception("File is empty");
}It started throwing the exception. But when I opened the file it wasn't empty it did have data in it. When I opened the file in binary I can see a CONTROL M at the end of each line. So why can't I read it?
thanks,

Client will upload their files on the Unix box,
then I will parse them and ftp them in FB with a record size of 490.
In this parsing I have to eliminate LF only, CR/LF etc and
also allow the with vo CR or LF. Finally error out if it has data which
is more/less bytes than 490.
This is the whole process, here is only the first few lines of code and
this is where it blows up.
BufferedReader br = new BufferedReader(new FileReader(file));
char[] chars = new char[500];
br.mark(510);
br.read(chars);
br.reset();
String temp = new String(chars);
if ((temp.trim()).length() == 0) {
     throw new Exception("File is empty");
}When I opened all the client file which did blow,
I observerd that control M is in all of those.

Similar Messages

  • Table control disables all the lines

    hi Goo day,
    i have worked a lot on on TC and am struggling to get it right with the insert option.
    i have button on the main screen where i read the data and fill the table control and display on the RADIO Button How many records are in the TC.
    So i click the button and get into the TC but accept the records that i have displayed will all be disabled. even if i try to enable a line by insert i cant do it.
    PROCESS AFTER INPUT.
    LOOP AT IT_WAGON.
       chain.
       field : IT_WAGON-TRAIN_NUM,
               IT_WAGON-DELAY_MIN.
        MODULE modify_tabview_wagon.
       endchain.
    ENDLOOP.
       IF sy-ucomm = 'INST'.
          DESCRIBE TABLE it_wagon LINES v_count.
         ADD 1 TO v_count.
         INSERT it_wagon INDEX v_count.
        ENDIF.
    i want to know why they are are disabled.
    what can i do to overcome.

    Do this in the PBO.
    rob

  • How do I get the line number of the sales order and how do I save info?

    I am trying to create a form that is able to be called from a right click on the sales order matrix and will display some of the user defined fields associated with the line.
    I've managed to create a form and add a menu option to the right click but I'm now stuck because of the following:
    1. How to I know which line the user selected? I need the REAL Line Number from the RDR1 table because I need to use it on the data filter of the form.
    2. I hard coded a line to just to see if I can load a form and it appears to load and bind the data to the controls, but how do I save changes made? There are several text fields, combo boxes, and a picture control.

    Hi Coleman,
    1. The pVal returned form a menu event does no provide the LineId, but a pVal from a Item Event does. I suggest you use a DoubleClick or Control + Click on the Line to trigger an event that you can catch and use to launch your form.
    2. Please note that if the Sales Order line is closed you'll not be able to update the values. If it's not, then you need to instantiate a Sales Order document, get the correct document with the GetByKey method and update whatever fields you need.
                    Dim oSalesOrder As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oOrders)
                    If oSalesOrder.GetByKey(docentry) = True Then
                        oSalesOrder.Lines.SetCurrentLine(pVal.Row - 1)
                        oSalesOrder.Lines.UserFields.Fields.Item("U_MyUDF").Value = ""
                        oSalesOrder.Update()
                    End If
    Regards,
    Vítor Vieira

  • HT1343 Error on Page: "Control-E     Move to the beginning of a line or paragraph" should be "Control-E     Move to the end of a line or paragraph"

    Error on Page: "Control-E Move to the beginning of a line or paragraph" should be "Control-E Move to the end of a line or paragraph"

    Apple - Feedback

  • Is it possible to remove hyphens at the end of a line separating parts of a word? Thank you

    Hi there,
    I was wondering, Indesign automatically adds hyphens at the end of a line to join one part of the word with the next part (on the next line). Is there any way to get rid of this in my entire document so that indesign automatically puts the word on the next line rather than separating it with a hyphen? I've been going through it manually and correcting it but it's taking many hours.
    Let me know if it's not clear what I'm saying
    Many thanks

    LegitNZ wrote:
     I've been going through it manually and correcting it but it's taking many hours
    Ouch!  What you need to do is turn "hyphenating" off.  Select all your text and do it in the control panel like this:
    You can also turn it off before you start in the paragraph panel, or by turning it off with no documents open make it off by default.

  • How to move the ends of skewed lines to the bleed bounds

    Hi all,
    I am developing a script that trims page items to the bleed. To achieve this I collect all page items (except text frames) located partially on the pasteboard, create a temporary mask and 'crop' them with Pathfinder's Subtract feature. However this approach doesn't work with graphic lines so I am attempting to move ends of lines to the bounds of bleed box. (I'm assuming that these are simple straight lines consisting of two end points.)
    I've figured out how to deal with orthogonal lines -- it's quite easy:
    if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
         path = theItem.paths[0];
         if (path.pathPoints.length === 2) {
              ep = path.entirePath;
              w = ep[1][0]-ep[0][0];
              h = ep[1][1]-ep[0 ][1];
              if (w > h) {
                   newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                   path.entirePath = newEp;
              else if (h > w) {
                   newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                   path.entirePath = newEp;
    This moves A1 to A2, B1 to B2, C1 to C2, D1 to D2.
    But how to deal with skewed lines? How to calculate coordinates for points E2 and F2? Is there some magic formula? Or can anybody point me to the right direction: e.g. some book to read?
    I guess this has something to do with geometry/trigonometry, but I haven't studied this stuff at school. (I graduated an art school -- studied to draw nude models instead.)
    If someone is going to answer to my question, please do it on elementary level since I am a total noob in this.
    Below is the whole script:
    if (Number(String(app.version).split(".")[0]) == 7) ErrorExit("This script can't work with InDesign CS5 so far.", true);
    var doc = app.activeDocument;
    var spreadBounds, spreadWithBleedBounds, gPartiallyOutOfSpreadItems;
    var ungroupErrors = 0;
    var originalHorUnits =  doc.viewPreferences.horizontalMeasurementUnits;
    var originalVerUnits =  doc.viewPreferences.verticalMeasurementUnits;
    doc.viewPreferences.horizontalMeasurementUnits = doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.INCHES;
    doc.viewPreferences.rulerOrigin = RulerOrigin.spreadOrigin;
    doc.zeroPoint = [0, 0];
    if (doc.layers.itemByName("Temporary Layer") == null ) {
         var tempLayer = doc.layers.add({name:"Temporary Layer"});
    else {
         var tempLayer = doc.layers.itemByName("Temporary Layer");
    UngroupAllGroups(doc.groups);
    DeleteObjectsOnPasteboard();
    ProcessSpreads(doc.spreads);
    ProcessSpreads(doc.masterSpreads);
    tempLayer.remove();
    doc.viewPreferences.horizontalMeasurementUnits = originalHorUnits;
    doc.viewPreferences.verticalMeasurementUnits = originalVerUnits;
    var msg = (ungroupErrors > 0) ? " Failed to ungroup " + ungroupErrors + " groups since they are too large." : "";
    alert("Done." + msg, "Trim Pages Script");
    //================================== FUNCTONS ===========================================
    function ProcessSpreads(spreads) {
         var spread, path, ep, w, h;
         for (var s = 0; s < spreads.length; s++) {
              spread = spreads[s];
              spreadBounds = GetSpreadBound(spread, false);
              spreadWithBleedBounds = GetSpreadBound(spread, true);
              gPartiallyOutOfSpreadItems = GetPartiallyOutOfSpreadItems(spread);
              var theItem, theMask, newItem;
              for (var i = gPartiallyOutOfSpreadItems.length-1; i >= 0; i--) {
                   theItem = gPartiallyOutOfSpreadItems[i];
                   if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
                        path = theItem.paths[0];
                        if (path.pathPoints.length === 2) {
                             ep = path.entirePath;
                             w = ep[1][0]-ep[0][0];
                             h = ep[1][1]-ep[0 ][1];
                             if (w > h) {
                                  newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                                  path.entirePath = newEp;
                             else if (h > w) {
                                  newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                                  path.entirePath = newEp;
                   else {
                        theMask = CreateMask(spread);
                        try {
                             newItem = theMask.subtractPath(theItem);
                        catch (err) {
                             $.writeln("2 - " + err);
                             theMask.remove();
    function IsPartiallyOutOfSpread(pageItem) {
         var result = false;
         if (pageItem.constructor.name == "TextFrame" ||
              pageItem.constructor.name == "Group" ||
              pageItem.parent.constructor.name == "Group")
              return result;
         var visBounds = pageItem.visibleBounds;
         if (visBounds[0] < spreadBounds[0] && visBounds[2] > spreadBounds[0] ||
              visBounds[1] < spreadBounds[1] && visBounds[3] > spreadBounds[1] ||
              visBounds[2] > spreadBounds[2] && visBounds[0] < spreadBounds[2] ||
              visBounds[3] > spreadBounds[3] && visBounds[1] < spreadBounds[3]  ) {
              result = true;
         return result;
    function GetSpreadBound(spread, bleed) { // including bleed -boolean
         if (bleed == undefined) bleed = false;
         with (doc.documentPreferences) {
              var topBleed = documentBleedTopOffset
              var leftBleed = documentBleedInsideOrLeftOffset;
              var bottomBleed = documentBleedBottomOffset;
              var rightBleed = documentBleedOutsideOrRightOffset;
         var bFirst = spread.pages.item(0).bounds; // bounds of the first page
         var bLast = spread.pages.item(-1).bounds; // bounds of the last page
         return [     ((bleed) ? bFirst[0]-topBleed : bFirst[0]),
                        ((bleed) ? bFirst[1]-leftBleed : bFirst[1]),
                        ((bleed) ? bLast[2]+bottomBleed : bFirst[2]),
                        ((bleed) ? bLast[3]+rightBleed : bLast[3])
    function CreateMask(spread) {
         var unitValue = new UnitValue (app.pasteboardPreferences.minimumSpaceAboveAndBelow, "mm");
         var unitValueAsInch = unitValue.as("in");
         var outerRectangleBounds = [spreadWithBleedBounds[0]-unitValueAsInch,
                                                                spreadWithBleedBounds[1]-8.07,
                                                                spreadWithBleedBounds[2]+unitValueAsInch,
                                                                spreadWithBleedBounds[3]+8.07
         var outerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:outerRectangleBounds});
         var innerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:spreadWithBleedBounds, fillColor:doc.swatches.item("Black"), fillTint:30});
         var mask = outerRectangle.excludeOverlapPath(innerRectangle);
         return mask;
    function GetPartiallyOutOfSpreadItems(spread) {
         var allPageItems = spread.allPageItems;
         var partiallyOutOfSpreadItems = [];
         var currentItem;
         for (var i = 0; i < allPageItems.length; i++) {
              currentItem = allPageItems[i];
              if (IsPartiallyOutOfSpread(currentItem)) partiallyOutOfSpreadItems.push(currentItem);
         return partiallyOutOfSpreadItems;
    function DeleteObjectsOnPasteboard() {
         var objs = app.documents[0].pageItems.everyItem().getElements();
         while (obj=objs.pop()) {
              try {
                   if(obj.parent instanceof Spread || obj.parent instanceof MasterSpread){ obj.remove() }
              catch(err) {
                   //$.writeln("2 - " + err);
    function ErrorExit(myMessage, myIcon) {
         alert(myMessage, "Trim Pages Script", myIcon);
         exit();
    function UngroupAllGroups(groups) {
         for (var i = groups.length-1; i >= 0; i--) {
              var gr = groups[i];
              if (gr.groups.length > 0) {
                   var subGroups = [];
                   for (var j = gr.groups.length-1; j >= 0; j--) {
                        subGroups.push(gr.groups[j].id);
                   try {
                        gr.ungroup();
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   for (var k = subGroups.length-1; k >= 0; k--) {
                        try {
                             doc.groups.itemByID(subGroups[k]).ungroup();
                        catch(err) {
                             //$.writeln("2 - " + err);
                             ungroupErrors++;
              else {
                   try {
                        gr.ungroup();
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
    Thanks in advance.
    Kasyan

    Hi Kasyan!
    I didn't try to integrate this into your script, so you might have to adjust it a little bit. The trick is to define a function that finds the intersection point of two lines --- and, obviously, you should only call it for the lines that are sure to cross the page border! (Otherwise, it would simply extend *any* line up and over the border.)
    I think it would be wise to allow for a tiny error for lines that appear to run "up to" the page edge -- I tested a line for "x <= 0" on a line that appeared to start on 0; the control panel told me so. However, I didn't type that 0 in; I dragged the line to the edge. Apparently, it was *NOT* at precisely "0mm", but something like "0.001mm", because the script simply didn't "see" the line.
    My function comes from this page: http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/ and I didn't test what it does to orthogonal lines
    (but of course you could add this as an exception), and this is my line-extending script, with a little wrapper to set things up.
    The function tests *any* line against *any* other line, so if one crosses the page bounding box, I get the intersection with the bleed box on the side where it crosses the page bbox.
    line = app.selection[0];
    // pg size in "regular" [y1,x1, y2,x2] format
    pagebbox = [0,0, app.activeDocument.documentPreferences.pageHeight,app.activeDocument.documentPreferences.pageWidth ];
    bleedDist = 5; //
    bleedbbox = [ pagebbox[0] - bleedDist, pagebbox[1] - bleedDist, pagebbox[2] + bleedDist, pagebbox[3] + bleedDist ];
    pt1 = line.paths[0].pathPoints[0].anchor;
    pt2 = line.paths[0].pathPoints.lastItem().anchor;
    // Start point:
    if (pt1[0] <= pagebbox[1] || pt1[0] >= pagebbox[3] ||
    pt1[1] <= pagebbox[0] || pt1[1] >= pagebbox[2])
    if (pt1[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    if (pt1[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    if (pt1[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
    if (pt1[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
    line.paths[0].pathPoints[0].anchor = intersectPt;
    // End point:
    if (pt2[0] <= pagebbox[1] || pt2[0] >= pagebbox[3] ||
    pt2[1] <= pagebbox[0] || pt2[1] >= pagebbox[2])
    if (pt2[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    if (pt2[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    if (pt2[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
    if (pt2[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
    line.paths[0].pathPoints.lastItem().anchor = intersectPt;
    function IntersectionPt (ln1, ln2)
    var ua;
    var x1 = ln1[0][0], x2 = ln1[1][0], x3 = ln2[0][0], x4 = ln2[1][0];
    var y1 = ln1[0][1], y2 = ln1[1][1], y3 = ln2[0][1], y4 = ln2[1][1];
    ua = ((x4 - x3)*(y1 - y3) - (y4 - y3)*(x1 - x3))/((y4 - y3)*(x2 - x1) - (x4 - x3)*(y2 - y1));
    return [ x1 + ua*(x2-x1), y1 + ua*(y2-y1) ];

  • Module pool ---Problem in finding the line index for the table control

    Hi Friends,
    I am working in Module pool programming.
    My requirement is when i select any record on the lead selection I need to find out the index of the line on which  row i have selected.
    Could any one please suggest me the proper solution how to get the line index for the table control in module pool programming.
    Thanks
    Satish Raju

    Hi Raju,
    Follow the steps
    <li>U should take one variable in your internal table or in structure which is used for table control fields.
          DATA :BEGIN OF itab OCCURS 0 ,
                mark TYPE c ,
                matnr LIKE mara-matnr ,
                matkl LIKE mara-matkl,
                maktx LIKE makt-maktx,
            END OF itab .
       controls: tabc types tableview using screen 100.
    <li>This mark variable should be given in Table control properties. follow the path
    double click on the table control-->attributes .->select w/SelColumn and in that give itab-mark.
    <li>Flow logic of the screen
       process before output.
         MODULE status_0100.
         LOOP AT itab with control tabc
         endloop.
       process after input.
         module cancel at exit-command.
         LOOP AT itab.
           MODULE read_table_control.
         ENDLOOP.
         MODULE user_command_0100.
    <li>read_table_control module code
         MODULE read_table_control INPUT.
         MODIFY itab INDEX tabc-current_line."this will update the itab table
                                             "mark field with 'X ' whatever we
                                             "have selected on table control
         ENDMODULE.
    <li>If you want to Delete some of the records from Table control follow this code u2026Create one pushbutton and give Fucnction code to that and write below code
       CASE okcode.
         WHEN 'DELETE'.
           LOOP AT itab WHERE mark = 'X'.
             DELETE itab.
           ENDLOOP.
       ENDCASE.
    I hope that it helps you.
    Thanks
    Venkat.O

  • Is it possible to export to PDF without a Return character at the end of every line?

    I am the author of a book whose first edition has been typeset and extensively amended in InDesign.  I now need to rewrite the first edition to produce a second edition.
    When I copy-and-paste from the PDF with which the publisher has supplied me into MS Word, I get a Return character at the end of every line, which means that text doesn’t automatically wrap and sentences are fragmented so that I get spurious grammar errors.
    I know that not all PDF files have a Return at the end of every line.  Is it possible to restrict Returns to the end of paragraphs when exporting from InDesign to PDF?  If so, what should the publisher be asking the typesetter to do?

    Thanks for your lightning-swift and helpful replies, Mike & Ellis.
    I don't have InDesign myself, so I know hardly anything about how it's used.  I'm just trying to research what an internationally-known publisher should already know how to do, but apparently doesn't!
    Following your suggestion, Mike, I have downloaded the trial version of Acrobat and exported the PDF to a Word file.  This has been moderately successful as there are far fewer spurious Return characters, just a few that I suspect may be hangovers from the typesetter having introduced soft returns in ID.
    As you've suggested Peter and Ellis, I'll suggest that the publisher asks the typesettter to export from ID to RTF and Text to see if that's even better.
    Message was edited 15:24 GMT by: AlanS5100

  • Hi, i am having an issue with a basic motion scroll effect.  I already watched and read every tutorial out there regarding this topic and even tried the adobe chat support, but the guy on the other end of the line disconnected me-, probably he didn't unde

    Hi, i am having an issue with a basic motion scroll effect.
    I already watched and read every tutorial out there regarding this topic and even tried the adobe chat support, but the guy on the other end of the line disconnected me…, probably he didn't understand what i wanted from him because english is not my native language, so a will try to be very, very clear about this one..
    please note, that i am new to muse, this is my first project ever.
    my idea is as following:
    when the customer comes to our companies site, he just sees our logo on a white Background. the logo consists of, say, four elements. when the customer scrolls down, the logo starts to disassamble: first the first part of the logo flies out the left side of the site, then the second part of the logo vanishes down, then the third part of the logo flies to the right, then the fourth part of the logo flies to the top and out of the customers view. given what i have seen, it is possible to do that….
    so…..
    now i have the four parts of my logo imported as png files into muse and assembled them in design view to build our companies logo. I select every one of the four parts and go into the scroll effects tab left beside the layers tab. first i enter the same values for every one of the four parts: initial motion: 0x and 0x again for the left and right motion; key position ( t-handle) : 0px; final motion: 0x and 0x again for the left and right value.
    now i hit "preview".: the logo is "pinned" at the correct position, i can scroll but the logo stays where it is. so far so good….
    now i select all the four elements again and go to the scroll effecs tab. at "final motion", i click the down arrows and enter 1x. I hit Preview…
    when i am scrolling down the WHOLE logo goes down…. so far so good.
    NOW i want the first part of the logo to go down, THEN the second part to go left, THEN the third part to go up, THEN the fourth part to go right.
    so i select ONLY the first part, go to the scroll motion tab, at "final motion" i click the left arrows, then i enter 1x.( the up-down value, i set to 0 again).. i hit Preview…
    the first part of the logo goes left as soon as i start scrolling, the other three parts still go down at the same time…
    NOW i want the second part of the logo to start moving, when the first part has left the scene, not at the same time as the first part.
    SO I SELECT THE SECOND PART AND DRAG ITS T-HANDLE (KEY POSITION) DOWN TO, LETS SAY, 200PX. SO IT STARTS MOVING ONLY AFTER THE CUSTOMER HAS REACHED THAT POINT, RIGHT?
    BUT WHEN I PREVIEW THAT ****, THE LOGO IS NOT TOGETHER ANYMORE, THE SECOND PART IS FLOATING ANYWHERE ELSE BUT WHERE IT SHOULD BE…..WTFF????
    short: when i move the t handle, the initial position of the object changes. thats what i said to the adobe employee, but he said, that thats the expected behavior….
    but if thats so, how can i have my four parts correctly together, so they form my logo, but with different t handles, so that they all start to move at different times??
    Pleeease help me, i am dying of frustration here…..:( that behavior cant be right, right?
    Thanks so much to everyone who actually reads this post and tries to help…….
    All the best,
    Niki Lapan

    Thank you so much for helping,
    But i really wonder how you did that. did you always switch between design view and preview view, then change the key position for 2px then switch back, to align the four letters? because i imagine that can get really frustrating, if you have a logo consisting of 58 parts instead of 4!:)
    Anyway thank you very much for your time and effort!!!!

  • Is it possible to add a word at the end of a line?

    Hi, i'm searching a way to automatically add a word at the end of a certain paragraph styles?
    is it something possible doing by using a script?
    i don't script myself but if someone could find me a way to do this it would be really appreciated.
    Here's an example to what i need to do:
    i have paragraph style X in a current  book document, and i need to edit the book and add the copyright source at the end of every line that has the style X to it
    so i would need something that asks me
    the targeted paragraph style
    which word i want to append to it, and then apply it torough the document.
    Thanks in advance

    Yes, the screen shot shows where you got it wrong:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Find: (.)$
    and set your paragraph style in the find format area
    Change: $1XYZ
    where XYZ is the text you want to insert.
    .. you forgot the '1' right after the '$'. It's an important omission: "$1" is a GREP code, meaning "insert the found text, parenthesized group #1" -- and there is also a "$2", "$3", etc. up to "$9". It's great if you have to switch two, or even more, items around! But without the digit, the dollar sign indicates ... just a dollar sign.
    Change the Change to text to
    $1~S(CEMEQ)
    and you'll be fine.

  • How to delete a character at the end of each line in a file

    Hi
    How to remove a character or symbol at the end of each line in a file?
    I am having a file with every end of line conatins special chars @.
    I need to remove or delete that sysmbol from file.
    Regards

    JoeBorland wrote:
    File is large about above 20,000 lines.
    I need to find the optimum solution.
    Like reading a file and find the end of character and writing into a file.
    The above way is correct or any other way?Try it and see. Such a program will only be a dozen lines long.

  • We have 5 lines but only using 4; how do I terminate the unused line?  Is there a fee?  Can I transfer end of contract date from another line to the line we don't use?

    We each have a phone and our three children are on our account as well.  One of my boys just started his own account and is no longer using his phone or the line that is on our account.  The contract end date is another year away but my other son's contract end date is next month.  Is it possible to transfer the contract end date like we can transfer upgrade dates?  I hate to pay $50/month for a line that's not being used. 

    No, you cannot transfer contract end dates. If you cancel the unused line, you will have to pay an ETF.
    Your son still on your account could start using your other son's line and number. Then you could cancel out HIS old line once the contract runs out, but then he could not get a new phone for another year. Can his phone last another year?

  • Text in the textfield  has "=" symbols at end of each line. how to remove ?

    For certain cases, if one does cut & paste (multiple lines of text ) into the text area from email, the symbol ("=") appears at end of each line. I was told to handle such cases and remove the "=" at end of each line from the text area. If I replace "=" with space, It would replace every single appearance of "=" with space instead of just only at the end. Any help will be greatly appreciated.
    -thanks

    Hi
    Try to find out new line character.And if position of thses "=" is specific to new line char. you search it out from there and then can replace with any char or space.
    Hope this will work .

  • Tab character missing in the end of the line in file2file scenario?

    Hi,gurus:
    Our scenario is file to file,and both transport protocols are FTP.
    We are using content conversion both in sender and recevier side.
    But when we test the scenario,we found the tab character('0x09') is missing if the tab character is in the end of a line.
    Can you tell me how to keep these tab characters the same as sender file?
    Thanks in advacne.
    ps: in the content conversion,the parameter fieldSeparator and endSeparator are both '0x0A'.
    Edited by: xinjiang li on Jul 31, 2009 10:53 AM

    Hi,
    The source data is as below:
    H     0000140898     0     UCP31300     20090715     20090715     2     1     UCP31310     
    D     0000140898               00001                    
    After the record '00001',thare are some tab parameter,but after send content conversion,the payload is below:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_3PL_SAP2PF_ST02_SENDER xmlns:ns="http://www.unicharm-china.com/3PL">
    - <Recordset>
    - <Line>
      <Line>H 0000140898 0 UCP31300 20090715 20090715 2 1 UCP31310</Line>
      </Line>
    - <Line>
      <Line>D 0000140898 00001</Line>
      </Line>
      </Recordset>
      </ns:MT_3PL_SAP2PF_ST02_SENDER>
    The tab parameters are missing.
    Our sender content conversion is below:
    Line.endSeparator:'0x0a';
    Line.fieldSeparator:'0x0a';
    Line.fieldNames:Line
    Any ideas?

  • Is there a way to restrict the cursor at the end of a line in the source code editor??

    In the source code editor, the cursor will always follow where I click. But I wanna restrict it at the end of a line, just like other text editors do. Is there a option or sth? I can't put up with it any longer.
    Solved!
    Go to Solution.

    Hello morphe!
    The source editor in the LabWindows/CVI environment is constructed under the concept of virtual space.
    At the moment, in the current version of LabWindows/CVI, this is the default behavior, which cannot be changed from the editor preferences dialogs.
    Best regards,
    - Johannes

Maybe you are looking for