Delete the content of a file

Hi,
I have an data file in which I want to write my new data. The problem is how to overwrite the old data in this file or to delete first the content of this file.
Thanks

Hi Heelclick,
      Open the LastRun.VI attached in this thread.  It uses "New File" to create a new file every time it saves a file.  Notice, too, that overwrite=true - there will be no warning if file already exists.
Cheers
Message Edited by tbd on 01-12-2007 03:39 AM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Similar Messages

  • I deleted contents from pages school report by accident. is there any way to get it back. I reopened the file and it is blank, I deleted the contents from a school report by accident. is there any way to get it back. I reopened the file and it is blank

    I opened a file to print and by accident highlighted and deleted the content. Then in a panic I closed the file and now when I open it is blank. Is there any way to get it back.  I have looked and can not see anyway. I dont have anything in my backup?

    I'm not sure about older versions, but in Pages 3.x (OS X 10.9.x) select File > Revert To > Browse All Versions.  Hopefully there will be an earlier version that you can "revert to".

  • Ok to Delete the Contents of the Render Files Folder?

    Hello Hello
    I remember from using various PC Video Editing programs that each program established for itself a 'Render Folder', or sometimes called an 'Auxiliary Folder'.
    This folder contained the contents of the previously rendered files as they related to a particular DVD burned project. Once rendered, the files were there to sort of help reduce the process time, (render time), required to burn another DVD disc.
    In FCE HD, there is also a folder called 'Render Files', and also another folder called 'Audio Render Files'. Naturally the contents of these folders could easily amount to 2 gigs or more depending upon the project size.
    Well - (aside from increasing Re-Rendering Time in regard to a new DVD burn), is it safe to delete the contents of the 'Render Folder' in an effort to free up hard drive space?
    Thanx
    Mike

    Hi Mike,
    You may have a couple of things mixed up.
    In FCE the Render Files and Audio Render Files folders hold the render files produced by FCE. FCE uses those render files when you play the timeline, print to video or export a movie. You can delete them at any time because you can always re-render in FCE. However, you do need to be careful at the point when you export a movie from FCE (for example, to use in iDVD)
    If you export to a QT Self-Contained movie, all the media for the movie you export (including rendered video & audio) is incorporated into the resulting QT movie file. Assuming a successful export, you no longer need the FCE render files.
    However, if you export to a QT Reference movie, you need to keep the FCE render files available when you import your project into iDVD and build your DVD structure. When iDVD encodes & multiplexes to burn your DVD, it will use the QT Reference movie, which in turn uses the FCE render files (and your original media).
    In iDVD, after you burn your DVD, you have the option of keeping the 'rendered assets'; these are iDVD render files and are inside your iDVD project file; they are not the FCE render files.
    If you really want to save time burning subsequent DVDs, in iDVD you should Save As Disk Image (instead of Burn DVD), which gives you a completely finished, fully encoded & formatted DVD disk image. You can then use the Finder, Disk Utility or Toast to burn additional DVDs for only the burn time, you won't have to go through iDVD's menus & re-rendering just to burn an additional DVD.

  • How to delete the specified line in file?

    How to delete the specified line in file? In case of deleting a specified line in a file, how to do?
    Line 1
    Line 2
    Line 3
    Line 4
    Line 5
    The case is a file including the above content. Now I wanna to delete the "Line 3" and how to realize the action in Java?

    An alternative solution can be :
    import java.io.LineNumberReader;
    import java.io.IOException;
    import java.io.File;
    import java.io.FileReader;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    public class LineDeleter {
    public static void main(String args[]){
    try {
    //suppose you want to delete line 3
         int lineToBeDeleted = 3;
         File f = new File("line.txt");
         long fileSize = f.length();
    //Wrap the FileReader with a LineNumberReader. It will help you
    //identify the lines.
    LineNumberReader lnr = new LineNumberReader( new FileReader(f));
    //Wrap the FileWriter object with BufferedWriter object. Create it with the buffersize
    //equal to the file size.
         BufferedWriter bw = new BufferedWriter(new FileWriter(new File("line1.txt")),(int)fileSize);
    //Wrap BufferedWriter object with PrintWriter so that it allows you
    //to print line by line
    PrintWriter pw = new PrintWriter(bw);
         String s=null;
         while ( (s=lnr.readLine())!=null ){
              System.out.println(s);
              int lineNumber = lnr.getLineNumber();
    //match the line number
              if(! (lineNumber==lineToBeDeleted)){
                   pw.println(s);
              pw.flush();
              lnr.close();
              pw.close();
         catch(Exception e){System.out.println(e);}
    If you want you can rename the line1.txt to the original file name.
    I hope this helps.Good luck!!!!!!

  • Can I safely delete the contents of Content.IE5?

    I'm running MacOS 10.6.8 (Snow Leopard) and using Bootcamp 3 (I think) so run Windows XP SP3. My Bootcamp drive is formatted in FAT32, There is a hidden folder in Windows called Content.IE5 where, as I understand it, Internet Explorer stores all of its temporary files. My folder has grown to over 700 MB, and it doesn't get any smaller when I click on the delete temporary files button in IE.
    The folder itself is invisible in Windows, but I can see it when I navigate through the Bootcamp drive in Mac OS.
    I found two links regarding this problem, one from Microsoft
    http://support.microsoft.com/?scid=kb;en-us;301057
    http://www.paessler.com/blog/2009/04/17/prtg-7/how-to-get-rid-of-huge-default-us erlocal-settingstemporary-internet-filescontentie5-folders
    As the second link explains, there are severral issues that make it quite difficult to clear the contents of this directory, such as the fact that it belonds to the "default user" and the fact that it is always in use. But as a Mac user running Bootcamp, I have the ability to navigate directly to the directory while running Mac OS and delete the contents manually which otherwise is not possible when running in Windows! My question to the community is should I do it? Or rather, has anyone else attempted this, and if so, did you brake anything in Windows or did it all turn out honky dorey?
    Many thanks.

    Thanks. The clip in the events folder is in Apple Intermediate Codec.
    A clip from the same video in the Original Movies folder is also in Apple Intermediate Codec but with larger pixel dimensions. I'm assuming this isn't H.264 as you mentioned should be there? See attached images.
    The original movie is shot in 1080p AVCHD. But when I imported it into iMovie I did so at the iMovie optimised 920 x 540px as most movies I edit will only ever appear online for the moment (I do archive original HD footage from important footage to the iMovie Camera Archives for future use).

  • In Numbers, I copied a worksheet and deleted the contents. The sheet I copied from has a header, I can't see it or bring it up when I'm working but it appears when I print the sheet. How do I delete it?

    In Numbers, I copied a worksheet and deleted the contents. The sheet I copied has a header.  I can't see it or bring it up when I'm working but it appears when I print the sheet. How do I delete the header?

    Hi Cristina,
    Headers are not shown in normal view.
    Menu > File > Print to open Print View.
    Hover the cursor over the Header to see the outline. Click and delete.
    Regards,
    Ian.

  • I accidentally deleted the contents folder  of BootCamp

    Ok so I was trying to install windows 7 through Bootcamp using an USB and iso file. But somewhy in my Bootcamp there wasn't the option for it so I downloaded an alternative contents folder which allowed me to do so. After I got to the part of partitioning my drive it was taking a very long time, and hour or so. So I decided to shut down my mac and repair the drive so it was as before.
    Afterwards I thought of a reason why it did not succeed and came to the conclusion that because I downloaded the Bootcamp of somewhere. So I deleted the contents folder I downloaded from the internet and tried to find the old one but then realised that I deleted that too. So now Bootcamp does not work at all. So I am wondering where could I download Bootcamp or is there some sort of update that would restore it?
    Thanks.

    Reinstall OS X. That is the only way to fix what you messed up.
    Simple fact is you Can NOT install Windows on a Mac that came with a DVD drive any other way then using the Built in DVD drive. Apple has limited all Mac that come with internal DVD drive to only install Windows from that internal drive.

  • Access Connection​s 5.21 corrupt - The contents of this file cannot be unpacked..

    Access Connections 5.21 as posted on the ww-307.ibm.com web site is bad... if you try to install you'll get an error dialog: "The contents of this file cannot be unpacked.  The executable you are attempting to run has been corrupted.  Please obtain another copy of the file, verify its integrity, and try again.". 
    I think I see why... the files are being truncated at about 16 megabyates, perhaps by the web server?
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=MIGR-4ZLNJB is the page for the Windows XP version and it points to file 7xcx23ww.exe, which is supposed to be about 26 megabytes.  But when you download the file, it gets truncated to about 16 megabytes.
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?sitestyle=lenovo&lndocid=MIGR-67283 is the page for the Windows Vista version and it points to file 7xcv23ww.exe which is suposed to be about 35 megabytes.  But when you download the file, it also gets truncated to about 16 megabytes.
    The complete files are on ftp.software.ibm.com.  Connect with your favorite ftp client, log in as anonymous with your email address as the password... then cd /pc/pccbbs/mobiles, type binary (to ensure binary transfer) and hash (to get progress hash marks) and you can use the get command (i.e. get 7xcx23ww.exe or get 7xcv23ww.exe) to fetch the file you need.
    The Windows XP version appears to extract OK now (haven't installed it yet though), and the Vista version appears to be the right length.
    Good luck,
    Rob
    Message Edited by rsulliva on 03-27-2009 11:15 PM
    Message Edited by rsulliva on 03-27-2009 11:39 PM

    Hi Bill,
    Hmmm.  I just tried it again couple of times, and still get truncated file 7xcx23ww.exe via http download.
    I could imagine an issue with my browser (Firefox) on Windows, Netgear access point or cable modem ISP and I would be reluctant to point finger at the web server.  But as I verified yesterday, 2nd download attempt with wget and linux in a shell account (accessed via ssh on box hosted far away by an entirely different ISP) also gets the truncated file.
    Hope this is helping someone - if I'm only one getting the corrupt files I'll delete the post... is anyone else seeing this?
    tx,
    Rob
    ps: good news - Access Connections 5.21 seems much more stable than 5.20

  • Can I recover earlier version of Powerpoint presentation? I accidentally deleted the content and then (DOH!) saved it.

    EIGHT hours into a Powerpoint presentation. Wanted to delete the content of a particular slide. Did a "command +A" (select all), hit delete...and then like a complete idiot, saved it, thereby overwriting all of the content. The file itself has not been deleted...now it's just a blank presentation with all content MIA. Previous to this screw up, there were 49 versions. Is there a way I can find the last version before my DEFCON LEVEL: BLONDE moment???

    Not unless you have Time Machine running and can recover an older copy from there

  • Iphoto has just deleted the contents of the last album i uploaded by unexpectedly closing whilst viewing photos. It is also refusing to recognise "flagged" photos. any ideas?

    iphoto has just deleted the contents of the last album i uploaded by unexpectedly closing whilst viewing photos. It is also refusing to recognise "flagged" photos. any ideas?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • How to delete the Contents in a transaction?

    Hi all.
    I had a definite transaction that will be run by a pgm having 5 columns in a table.Now the users dont need 2 columns .
    How can we delete the contents of that table?
    Reply soon.
    Regards,
    SSR.

    I am not 100% sure what you mean.
    Do you only want to remove the two columns from the report (assumed it is a Z-report)
    In that case if it is an ALV list, just remove the fields from the field catalog and the user won't be able to see them any more.
    If it is just a standard list, you would have to remove the write statements for those two columns.
    For standard reports there is not much you can do without doing a mod or in case of an ALV list create a variant for that user which hides the fields he doesn't want to see. The variant is an option for the Z-reports as well.
    If you are talking about fields in a database table you would like to remove (assumed that it is a Z-table, you can just remove the fields in transaction SE11. After deleting the fields you will have to use the Database Utility (SE11-Utilities-Database Object- Database Utilities - Activate and Adjust Database). This will remove the columns including the data in it from that table.
    Never remove any fields from a standard table - even deleting values out of certain columns for standard tables is a very bad idea unless you really exactly know what you are doing.
    Hope that helps,
    Michael

  • How to Delete the content of an existing site and start from scratch

    I choose the wrong template when i initially setup my bc hosting for a customer how do i change the template i choose in site options and select a different one . I need to delete everything and stat over. I tried deleting everything under the develop area but lost my module style sheets for the eCommerce package. please help. Im on the business catalyst platform

    Hi Joey,
    Good to see that we are not the only ones running into this problem.
    Seems as there is no standard solution available.
    We have developed our own process type which deletes the content of the Open Hub table.
    Thanks,
    Klaus

  • Hi, I have a new cell phone, I wanted to give my iphone to my father, instead of deleting the content on the iphone I have deleted the entire iphone. It starts up no more. iTunes will not recognize the iphone. How do I get my old data back onto the phone?

    Hi, I have a new cell phone, I wanted to give my iphone to my father, instead of deleting the content on the iphone I have deleted the entire iphone. It starts up no more. iTunes will not recognize the iphone. How do I get my old data back onto the phone?

    Place the device in DFU mode (google it) and restore as new.

  • How to display the content from a file  stored in database

    when i am trying to display the content from a file which stored in database on oracle report 10g
    data are displaying as following. please help me to display the data in readable format
    <HTML LANG="en-US" DIR="LTR">
    <!-- Generated: 1/11/2006, postxslt.pl [1012] v1
    Source: amsug304286.xml
    File: amsug304286.htm
    Context: nil
    Tiers: ALWAYS
    Pretrans: YES
    Label: Release 12 -->
    <HEAD>
    <!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
    <!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
    <LINK REL="stylesheet" HREF="../fnd/iHelp.css">
    </HEAD>
    <BODY BGCOLOR="#F8F8F8">
    <A NAME="T304286"></A><A NAME="ProdOve"></A>
    <CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
    <p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    ls.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
    </li></ul>
    </BODY>
    </HTML>
    <!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->

    Hi,
    you can try to use the:
    <b>ConsumerTreeListPreview</b>
    layout for KM navigation ivew (or customize to your own).
    This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
    Hope this helps,
    Romano

Maybe you are looking for