Modify the file.

the actual problem is there is a text file in following kind of entries in each line
<string>, starting point, ending point.
eg. "this is a file" , 10, 20.
now i want to calculate the length of the string and add to starting point and check with ending point if it is false then update the ending point with actual value.
I know the way to change the value(using the string tokenizer).
my question is this lines are in txt1.txt. How can i modify the values within the same file? Should i go for two files ... reading the values from one file and writing to the other values including the changing values or is there any way to modify the same text file.

Either read the entire file in and rewrite it (depends on how large the file is)
OR
Write a temp file then copy that file over the target file. (of course after you've closed the original file.

Similar Messages

  • Error 1321.  The Installer has insufficient privileges to modify the file c:\Program Files(x86)\Adobe\Acrobat 11.0\Resource\Font\MinionPro-It.otf.

    I am trying to update and am getting this error message.  Error 1321.  The Installer has insufficient privileges to modify the file c:\Program Files(x86)\Adobe\Acrobat 11.0\Resource\Font\MinionPro-It.otf.  I am the systems administrator so I am at a bit of a loss.

    You need to log in as the administrator (seems like you are) and may need to disable anti-virus. You might want to copy the otf file and then uninstall that font, trying again.

  • I am unable to download  Acrobat message reads Insuffient prileges to modify the file C:\ Program Files [ x 86] Adobe\ Acrobat 11.0\Acrobatwow_exe

    I am unable to download  Acrobat message reads Insuffient prileges to modify the file C:\ Program Files [ x 86] Adobe\ Acrobat 11.0\Acrobatwow_exe

    Bhaskar
    Despite your considerable work today.
    Still unable to open file, what is my serial number? is it not xxxxx?
    Regards
    Graham
    Edited by moderator: please don't share your serial number in a public forum; it's like leaving your keys visible inside your unlocked car and then going into a store for four hours...

  • How do I fix - Error1321:The Installer has insufficient privileges to modify the file C:\Program Files (x86)\Adobe\Reader11.0\Readerwow_helper.exe.

    I am trying to download the free Adobe Reader and I get the message Error1321:The Installer has insufficient privileges to modify the file C:\Program Files (x86)\Adobe\Reader11.0\Readerwow_helper.exe. I do not know how to fix this.

    Hi Koncar,
    Kindly try the steps mentioned below.
    1) Download the Adobe Reader.msi  from ftp://ftp.adobe.com/pub/adobe/reader/win/11.x/11.0.00/en_US/
    2) Run the .MSI for Reader and when you get the error click on Retry and installation would go trough.
    Thanks,
    Vikrantt Singh

  • When I save a site after I modify the file the changes do not show up in my upload file.

    When I save a site after I modify the file the changes do not show up in my upload file. What am I doing wrong?

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • I keep getting an error. Error 1321. The installer has insufficient privileges to modify the file

    I have Adobe Acrobat 10.0. I keep getting an error. Error 1321. The installer has insufficient privileges to modify the file C:\Programs Files\Adobe\Acrobat10.0\Acrobat\rt3d.dll
    How do I fix this issue?

    This happened after a forced update. This copy of Adobe has been running fine on the laptop for about a year and a half now all the sudden I am getting this error. Is the only fix to uninstall and reinstall?

  • How to modify the files in NTFS disk?

    Hello everyone,
    Recently, I find that I can't modify the NTFS or paste a file in it, just because I have not installed the HAL. But as you know hal is removed from pacman repo, so how can I modify the NTFS disk without HAL?
    Waiting for your answer!

    Could you explain how you are mounting the drive? You may have mounted it as read only.
    If you've done it by modifying /etc/fstab, check the options under wiki.archlinux.org/index.php/Fstab.
    If you're using mount (linux.die.net/man/8/mount) make sure you didn't use the -r or -o ro options.

  • Gapless Play - does this modify the files?

    I've noticed whenever I open iTunes7 now it starts sorting through all the files for some gapless play mombo jumbo....what is this? does it modifie the files at all? please help....Cheerz

    Apple, please upgrade iTunes 7 and include the ability to disable gapless playback completely for those of us who edit our wavs before saving to MP3. I also find absolutely no use for album art and would like to be able to COMPLETELY disable iTunes from searching for art. Merely choosing "no art" on set up did not do the trick.
    If you're going to glut and idiot-proof your products with features of this kind (a la Microsoft), please give those of us that don't want them an easy and complete way to opt out and still use the product for its main purpose (for me) which is to manage files on iPod.

  • How do I modify the file right-click context menu to add "creat shortcut"?

    I have just chosen Mozilla as my browser and want to add shortcuts to files by using the right-click context menu, but there is no "create shortcut" choice displayed.

    Could you describe where you're clicking, exactly? Are you clicking on a web page, or clicking a link on a web page? If you are using Firefox to browse files on your hard drive, you're probably better off using Windows Explorer to do that since Firefox doesn't have all the functions of Windows.

  • Is there a way to modify the file name when clicking the pdf button to be different

    I wish to have the default name to something like document type_document #.

    Hi,
    Only possible when you export through File--->Export--->PDF. If you directly click PDF icon, system will store with default format.
    Thanks & Regards,
    Nagarajan

  • How do I modify the file size

    I recently e-mailed a 1-page pdf document, converted from excel, that was 5.5 mb, whereas the original excel file was 50 kb. How does this happen, and how to correct this issue?

    Dov,
    I created the pdf file by scanning an excel single page doc, which I have
    done numerous times. The excel file is a time sheet, which I have to send
    once/month, filled in with excel, then printed, signed, and scanned. As an
    example, the scanned doc (to pdf) in Jan was 147 kb. The only difference is
    a different multi-function unit. Thinking now, perhaps the resolution wa
    s set too high for the scan.
    Charles Hocquard
    [email protected]

  • Trying to reinstall Premiere Elements 3.0    Get message - Error1321 Installer has insufficient privileges to modify the file - C\ProgramData\Adobe\Updater\Certs\AdobeUpdater.cer

    Anyone Help?

    Hi Koncar,
    Kindly try the steps mentioned below.
    1) Download the Adobe Reader.msi  from ftp://ftp.adobe.com/pub/adobe/reader/win/11.x/11.0.00/en_US/
    2) Run the .MSI for Reader and when you get the error click on Retry and installation would go trough.
    Thanks,
    Vikrantt Singh

  • Modifying the name of the file in the download dialog box

    Hi all!
    I've a javascript page that make a pdf document in the fly and download that document. Everything is fine, but I'd like to know how can I modifying the file name in the download dialog box, i.e., when the page display:
    "You are downloading the file:
    xpto.jsp from ..."
    I want to substitute the "xpto.jsp" by "file.pdf".
    I've already theses lines:
    response.setContentType("Application/pdf");
    response.setHeader("Content-Disposition", "attachment; filename="+ nameFile+";");
    response.setHeader("Content-Length", ""+stp.length);
    but the problem persist.
    Note that in the second window, the Save As window, everything is fine, the nameFile appears in the file name box. The problem it's only in the first window, the File Download window.
    Thanks for any help,
    A. Santos

    I've discover something. When the File Download window it's displayed with the following text:
    "You are downloading the file:
    xpto.jsp from localhost
    Would you like to open the file or save it in your computer?
    button OPEN button SAVE button CANCEL button MORE INFO"
    if I press the OPEN button then another File Download window opens with the rigth text:
    "You are downloading the file:
    file.pdf from..."!!!
    i.e, the text desired!
    So the first window is unnecessary and undesired!
    How can I remove this first File Download window??
    Please help!
    A. Santos

  • How to modified the current file?

    Hi, excuse for my english, I'm developing a plug-in with SDK 9,
    How can I do for modified the file opened with Acrobat Reader ?
    thanks

    Hi Leonard,
    thanks for yuor help, I find in the documentation of Adobe SDK how to create an annotation:
    PDPage page = NULL;
    PDAnnot annot,textannot;
    char* ptr = "This is initial text";
    //Create an ASFixed object and define its borders
    ASFixedRect fr;
    fr.left = ASInt32ToFixed(36);
    fr.top = ASInt32ToFixed(792-36);
    fr.right = ASInt32ToFixed(136);
    fr.bottom = ASInt32ToFixed(792-136);
    //Create a PDPage object
    page = PDDocAcquirePage(myPDDoc, 0);
    //Create a PDAnnot object
    annot = PDPageCreateAnnot (page, ASAtomFromString("Text"),&fr);
    //Cast the PDAnnot object to a PDTextAnnot object
    textannot = CastToPDTextAnnot(annot);
    //Open the annotation, set the text, and add it to a page
    PDTextAnnotSetOpen (textannot, true);
    PDTextAnnotSetContents (textannot, ptr, strlen (ptr));
    PDPageAddAnnot(page,-2, textannot);
    but when i built my project I'm stucky for this error:
    error C2065: 'PDPageCreateAnnotSELPROTO' : undeclared identifier
    error C2065: 'PDPageAddAnnotSELPROTO' : undeclared identifier
    error C2065: 'PDPageCreateAnnotSELPROTO' : undeclared identifier
    error C2065: 'PDTextAnnotSetContentsSELPROTO' : undeclared identifier
    error C2065: 'PDTextAnnotSetOpenSELPROTO' : undeclared identifier
    What is I wronging ?
    Excuse me for my english
    Thanks in advance.

  • Get modified date inside the File content of CM

    hi,
    In CM I have uploaded a file and have set the permission to modify the file to a group of users.Now when each and every time any user modifies the file content I want to have the modified date inside the updated file.
    How can i achieve this?.....
    Please help.....
    Thanks in advance,
    shami.

    Hi All,
    @Parvathy:There is no such property on your files, you should create one in your filter and depending on this custom property your filter should decide if a document update is required or not.
    As already said follow this:
    You have a content filter which can do updates to these files:
    -- Content filter sets a custom property new_modifieddate on each resource after updating resource. (new_modifieddate==cm_modified of resource)
    -- It compares new_modifieddate with cm_modified of resource to determine if it should update the resource with cm_modified.
    @Shami: Use some logging in your Filter code, so that you can make sure your code is being executed. One more way is to dubug you code by setting break points in NWDS (Ofcourse the server should be in debug mode for this option).
    logging :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a0/58db515b95b64181ef0552dc1f5c50/frameset.htm
    debug:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/31e540b1278631e10000000a1550b0/frameset.htm
    Greetings,
    Praveen Gudapati

Maybe you are looking for

  • Convert java.util.Timestamp to a formatted java.util.date

    Hi, I am trying to convert a java.util.TimeStamp date from the DB to a formatted date object. So, how can I convert this TimeStamp into an hourly or daily format that will return me a java.util.Date object? I was trying to convert the TimeStamp using

  • MY imac G5 isight camera drops my video conversations

    When ever I initiate a video chat with anyone I could never chat with them. A message appears that says, that I did not respond. But when the other party initiates a video chat, they can see me for like a few seconds and then the chat ends abruptly.

  • Printing the Collective Stock/Requirements List

    Hey All, I'm trying to print out the collective stock/requirements list via the menu path "System -> List -> Save -> Local File" but it is shaded out and i cannot do this, just like SD variants are needed to be maintained in own data for the report V

  • Process of costing

    hi..... i want to know all about process for cost of goods sold,cost of manufacture,cost of production. Thanks & Regards Rekha sharma

  • Urgent : Insert , save and Delete in the alv grid

    Hi Experts, I am having a alv grid and displaying data by fetching from backend. i added a toolbar buttons  "Insert " "Save"  and "Delete". when i click on "Insert " button the first row of the table should be empty with input fields. i want to inser