Pb to add data in existing file

I can't open a file to add data only and keep the old data in the file.
i use:
FileOutputStream
OutPutStreamWriter
BufferedWriter
PrintWriter
thank a lot

When you construct a new FileOutputStream you can specify that it should append to it rather than overwrite it:
OutputStream out = new FileOutputStream("c:/test.txt", true);
...Obviously add buffering and wrap up in PrintWriters etc. as you see fit.
Hope this helps.

Similar Messages

  • Add-Data-To-End-File

    hi every one
    i been two days seeking help about my problem but no one seems to reply
    my problem is very simple but becouse i am new on dealing with files i could not solve the following problem :
    i am trying to add data to a file hello world , and the blow code actully does the job for me but on the other hand it deletes the file current data stored on theat file
    what i am trying to say i want from the code to allow new data to enter the file at the end of it withot deleting any thing (overwritting)
    could you please help
    thanks
    the code:
    import java.io.*;
    public class add {
      static public String getContents(File aFile) {
          StringBuffer contents = new StringBuffer();
         BufferedReader input = null;
        try {
          input = new BufferedReader( new FileReader(aFile) );
          String line = null;
          while (( line = input.readLine()) != null){
            contents.append(line);
            contents.append(System.getProperty("line.separator"));
        catch (FileNotFoundException ex) {
          ex.printStackTrace();
        catch (IOException ex){
          ex.printStackTrace();
        finally {
          try {
            if (input!= null) {
              input.close();
          catch (IOException ex) {
            ex.printStackTrace();
        return contents.toString();
      static public void setContents(File aFile, String aContents)
                                     throws FileNotFoundException, IOException {
        if (aFile == null) {
          throw new IllegalArgumentException("File should not be null.");
        if (!aFile.exists()) {
          throw new FileNotFoundException ("File does not exist: " + aFile);
        if (!aFile.isFile()) {
          throw new IllegalArgumentException("Should not be a directory: " + aFile);
        if (!aFile.canWrite()) {
          throw new IllegalArgumentException("File cannot be written: " + aFile);
        Writer output = null;
        try {
          output = new BufferedWriter( new FileWriter(aFile) );
          output.write( aContents );
        finally {
          if (output != null) output.close();
      public static void main ( String[] aArguments ) throws IOException {
         File testFile = new File("test.xml");
          setContents(testFile,"hello world");
        System.out.println( "File contents: " + getContents(testFile) );
    }

    Hi
    and thanks for your help
    but i still having difficultties to make it work also i got some ideas from your website
    and the final code is the following :
    could you have a look
    thanks
    import java.io.*;
    public class test {
      static public String getContents(File aFile) {
          StringBuffer contents = new StringBuffer();
         BufferedReader input = null;
        try {
          input = new BufferedReader( new FileReader(aFile) );
          String line = null;
          while (( line = input.readLine()) != null){
            contents.append(line);
            contents.append(System.getProperty("line.separator"));
        catch (FileNotFoundException ex) {
          ex.printStackTrace();
        catch (IOException ex){
          ex.printStackTrace();
        finally {
          try {
            if (input!= null) {
              input.close();
          catch (IOException ex) {
            ex.printStackTrace();
        return contents.toString();
      static public void setContents(File aFile, String aContents)
                                     throws FileNotFoundException, IOException {
        if (aFile == null) {
          throw new IllegalArgumentException("File should not be null.");
        if (!aFile.exists()) {
          throw new FileNotFoundException ("File does not exist: " + aFile);
        if (!aFile.isFile()) {
          throw new IllegalArgumentException("Should not be a directory: " + aFile);
        if (!aFile.canWrite()) {
          throw new IllegalArgumentException("File cannot be written: " + aFile);
        Writer output = null;
        try {
          output = new BufferedWriter( new FileWriter(aFile) );
          output.write( aContents );
        finally {
          if (output != null) output.close();
      public static void main ( String[] aArguments ) throws IOException {
    byte[] bytes = null;
                 try {
                     RandomAccessFile raf = new RandomAccessFile( "test.xml", "rw" );
                     bytes = new byte[ (int) raf.length() ];
                     raf.seek( raf.length() );
                    raf.write
                   setContents(rdf,"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");
                   System.out.println( "File contents: " + getContents(rdf) );
                     raf.close();
                 catch( IOException e ) {
                     System.err.println( e );
                     System.exit( 1 );
                 System.out.println( new String(bytes) );
                 System.exit( 0 );
    }

  • Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.

    Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I  am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
    Pls explain me the steps for adding data from xml to B1 quotation step by step.
    thanks and regards
    Priya

    Hi,
    Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
    Thanks,
    Gordon

  • How to add data in a file

    hi,
    I have written following code.I have a file. i want to add data in this file.
    When i add data then data is added but i donnot get the previous data. What`s the problem of my code? Is there anyone can help me? how i will add data with the previous data? Please help me.
    String username=request.getParameter("UserName");
    String userage=request.getParameter("UserAge");
    String address=request.getParameter("UserAddress");
    String sex=request.getParameter("sex");
    FileWriter f = new FileWriter("d:\\download_dreamweaver\\Project_3\\WebContent\\SaveData.txt");
    f.append(username);
    f.close(); ith regards
    bina

    Looks like you're creating a new file (which overwrites the old one) every time. You need to open the file first and then append to it.

  • To add data in excel file

    I have an excel file with some cells blank. I want to add data in these cells and save this excel file with a different name.How can I do these by repoer generation toolkit for microsoft office.I am using Labview 2011.
    Please give suggestions.
    Thank you in advance....................

    There are two parts to this problem -- How do you find blank cells in an Excel WorkSheet and fill them with predetermined values, and once you know how to do that, how do you implement this using LabVIEW instead of doing it directly in Excel.
    Before worrying about the second part (which, while not so difficult, is not something for a LabVIEW "beginner"), think about how to handle the first part, say, in Excel, itself.  Write down an algorithm, taking into account (a) how to determine which cells to test, (b) what test to make (or even if you want to make a test), and (c) how to determine what to put into the cell.
    Come back when you've done at least this much (and spell out the algorithm).
    BS

  • How to add data in xml file

    Hi ALL
    I want to add new fields on seeded EBS page to store their values in hr_api_transaction table whoch contain information of other fields on that page which are seeded
    but that table has one column which stores xml file and that xml file has all information about that page's fields
    how can I store my custom fields values in that xml file ?

    Hi,
    As Andy said,  add data to an xml file is overwriting, if you mean append data to xml file, please look this article:
    http://codesamplez.com/programming/linq-to-xml-tutorial, Since this issue is more related to ASP.net, you could also ask this issue in asp.net forum:
    http://forums.asp.net/
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to write data to existing file using spool command?

    Hi,
    I am calling a stored procedure from a shell script. This stored procedure is having a CLOB object as an OUT parameter. How to write the data in CLOB object a existing file which is there in my client system. Below is the shell and sql scripts.
    Shell script
    ( echo "hello" ) > /root/file.txt
    sqlplus -s $user/$pass@$tns @/root/proc.sql /root/file.txt << EOF
    EOFSQL script
    set pages 0
    set trimspool off
    set serveroutput off
    set feedback off
    set term off
    set echo off
    variable out CLOB
    define file='&1'
    begin
    pack.proc(:out);
    end;
    spool &file
    select :out from dual;
    spool offThis code writes contents of the OUT variable to file.txt, but my existing data ('hello') is lost. Please help me.
    I figured the it...Use append in the spool command... :)
    Edited by: Balaji on Jul 19, 2012 8:55 PM

    >
    Hi Balaji
    I figured the it...Use append in the spool command... :Please mark the thread as answered as per the FAQ.
    Paul...

  • LabVIEW created .DAT file with saving only new data on existing files

    I can successfully create and save a .DAT file using LabView and Diadem.   The save command I am using (in Labview) only overwrites existing files, I would like it to save only the new data from the last save.  Overall I would like to save the data every 1hr and since my test will last for many hours, the further along in the test the longer it would take to save the full file.  I know Diadem has the capability to save in such a manner, so I have thought about after I write to Diadem have a small Diadem application save periodically, but I haven't found a way to save the .DAT file, with out any signals coming into the save function.  I have attached the example .DAT file creater and saver I am using to figure it out.  thanks for your help!

    Howdy New Guy -
    I am not sure if you are looking to append to a file, or if you would
    like to overwrite a file.  In either case, you can take a look at
    the "Append To File.vi" example for DIAdem. 
    Either way, you may be experiencing problems because you are only using
    the "DIAdem Simple File Write.vi" (found on the DIAdem >> DAT
    Files palette).  Instead, you can use the "DIAdem File Write.vi"
    (located on teh DIAdem >> DAT Files >> DAT Files Advanced
    palette).  This VI can be set to overwrite or append to file.
    I hope this helps in your development!
    Andrew W. || Applications Engineer

  • Cannot add data to existing table

    Hello All,
    I have a very trivial issue.  I have an existing test table in SQL and I use DBVisualizer client to connect to the server.
    I have only six records in the table that I am testing.  I have a field called "SITE".  Within this field I have the following data:
    Site:
    NYC
    LA
    BOS
    I am trying to import a csv file with 6 row of records, where I have records in there where 'site' = "BOS".
    But when  I try to import, I get the following error:
    "Violation of Unique Key constraint 'ix1_test'. Cannot insert duplicate key in object 'dbo.test'."
    When I try to add the records manually, SQL allows me to add all data into the row, except when I try to add "BOS" into the site field.  Then the error happens.
    What I do not understand is, I imported a previous csv with nine (9) records with multiple rows of records with "BOS" in the site field and had no issues.
    Why is this occurring now?
    Any help would be great!
    Thanks everyone!

    Thanks for the help Dan.  But it seems like I need the SQL admin to make some changes to the table.  What should I tell the SQL Admin to do on my test table?
    Or since this is a test table, and I believe I have full access to it, is there anything I can run not to make those fields part of a unique constraint?
    I can't really make a recommendation without knowing more about the data.  I see that this is a test table, but is the intent to model something in the real world? In the latter case, you might want more than one table (e.g. rooms, devices,
    and device types).  That would allow you to keep an inventory of computer devices and their locations with any number of devices per room.
    If your intent is to just play around inserting and selecting data without regard to data integrity, you can drop the constraint with the command below, assuming you have permissions to do so.
    ALTER TABLE dbo.test DROP CONSTRAINT idx1_test;
    I do have one minor recommendation for your admin about the constraint naming, though.  Although primary key and unique constraints are implemented as a unique index, I suggest a naming convention other than one that suggests an index.  This will
    help avoid confusion with indexes that are used to improve performance rather than ensure data integrity.  For example, you could name this unique constraint something like UQ_test_1 rather than ix1_test.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How to append binary data to existing file in OSB

    Hi,
    I have an OSB project that I need for it to append binary data via ftp.  Here's my current flow:
    MFL binary output --> Replace $body with mfl binary output --> Publish to action (Business service that's configured to ftp binary data).
    However, when the data is ftp'ed the following error is thrown:
    URI = ftp://xxx:21/opt/home/zzz/logs
    Request metadata =
        <xml-fragment>
          <tran:headers xsi:type="ftp:FtpRequestHeaders" xmlns:ftp="http://www.bea.com/wli/sb/transports/ftp" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="h
    ttp://www.w3.org/2001/XMLSchema-instance">
            <ftp:fileName>11802_insert_oh_xfrmr.eai_data</ftp:fileName>
          </tran:headers>
          <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
          <ftp:isFilePath xmlns:ftp="http://www.bea.com/wli/sb/transports/ftp">false</ftp:isFilePath>
        </xml-fragment>
    Payload =
    19266787^CLLL^C711791^CLLL^C^C1178213^CSingle Phase(1)^C63185066204^CA^CConstructed^C358880 NW 4 DR LK MONTAZA^C120/240^C09361^CN/A^CProposed Remove^CAerial^C45718100^C
    Unknown^C^CNo^CNormal Closed^CClamp^CA^C1^C2-Cover^C19266796^CNo^CNo^C15^C^CYes^CYes^CYes^C13200Y/7620 X 22860Y/13200^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
    ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C19266641^Coh_fuse_switch^C63086930001^C4^CN31^CDD0613^C22.9^C63376474601^C8129580^CFalse^C4^COke
    echobee^C43^C0^Cdefault^CYes^C
    >
    ####<Nov 6, 2013 2:28:23 PM EST> <Error> <WliSbTransports> <goxsd1604> <osb_server1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<
    anonymous>> <BEA1-4B688443B66FA09FFE75> <d2b4601b2fffd9b7:6b9f2297:1422a857ee8:-8000-000000000000171b> <1383766103889> <BEA-381105> <Error occured for the service endpo
    int: com.bea.wli.sb.transports.TransportException: Unable to open data connection. Message is Received error response (553) from FTP server [mpsd1] IP [10.111.19.32] po
    rt [21] status [connected] upon executing command [stor opt/home/zzz/logs/11802_insert_oh_xfrmr.eai_data.a]
    com.bea.wli.sb.transports.TransportException: Unable to open data connection. Message is Received error response (553) from FTP server [mpsd1] IP [10.111.19.32] port [2
    1] status [connected] upon executing command [stor opt/home/icanadm/logs/11802_insert_oh_xfrmr.eai_data.a]
            at com.bea.wli.sb.transports.ftp.connector.FTPTransportProvider.sendMessage(FTPTransportProvider.java:422)
    From what I understand the error code 553 represents a bad file name.  The file name that I'm supplying is 11802_insert_oh_xfrmr.eai_data but it appears that the name is changed to 11802_insert_oh_xfrmr.eai_data.a .  So I did the obvious and changed the file several different ways (without the .eai_data extension, removed the numbers from the file name) but still no luck. 
    Any suggestions?
    Thanks,
    Yusuf

    Thanks Eric.
    I'm using the JCA FTP adapter instead and noticed it's appending the test generated data supplied by the OSB test console.
    However, how can I ensure that the MFL output that I need to append will be placed on a new line? 
    Also, how should I map/assign the MFL binary output to the opaqueElement type base64Binary defined in the WSDL file below?
    Once again here's a sample payload that I need to ensure will be presented on a new line:
    19266787^CLLL^C711791^CLLL^C^C1178213^CSingle Phase(1)^C63185066204^CA^CConstructed^C358880 NW 4 DR LK MONTAZA^C120/240^C09361^CN/A^CProposed Remove^CAerial^C45718100^C
    Unknown^C^CNo^CNormal Closed^CClamp^CA^C1^C2-Cover^C19266796^CNo^CNo^C15^C^CYes^CYes^CYes^C13200Y/7620 X 22860Y/13200^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
    ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C19266641^Coh_fuse_switch^C63086930001^C4^CN31^CDD0613^C22.9^C63376474601^C8129580^CFalse^C4^COke
    echobee^C43^C0^Cdefault^CYes
    Here's the WSDL file that gets generated for the FTP adapter:
    <wsdl:definitions
         name="PutGenericDevice"
         targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/AMS/Project1/PutGenericDevice"
         xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
         xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/AMS/Project1/PutGenericDevice"
         xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
         xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
        >
      <plt:partnerLinkType name="Put_plt" >
        <plt:role name="Put_role" >
          <plt:portType name="tns:Put_ptt" />
        </plt:role>
      </plt:partnerLinkType>
        <wsdl:types>
        <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
                xmlns="http://www.w3.org/2001/XMLSchema" >
          <element name="opaqueElement" type="base64Binary"/>
        </schema>
        </wsdl:types>
        <wsdl:message name="Put_msg">
            <wsdl:part name="opaque" element="opaque:opaqueElement"/>
        </wsdl:message>
        <wsdl:portType name="Put_ptt">
            <wsdl:operation name="Put">
                <wsdl:input message="tns:Put_msg"/>
            </wsdl:operation>
        </wsdl:portType>
    </wsdl:definitions>
    Here's the JCA details:
    <adapter-config name="PutGenericDevice" adapter="FTP Adapter" wsdlLocation="PutGenericDevice.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/ftp/DssPut"/>
      <endpoint-interaction portType="Put_ptt" operation="Put">
        <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPInteractionSpec">
          <property name="PhysicalDirectory" value="/opt/eai/ofmw/Oracle/Middleware_R7/logs"/>
          <property name="FileType" value="binary"/>
          <property name="Append" value="true"/>
          <property name="FileNamingConvention" value="dummy.txt"/>
        </interaction-spec>
      </endpoint-interaction>
    </adapter-config>
    Thanks,
    Yusuf

  • Add data to existing buffer in ABAP memory

    Hi All
      My requirement is to store multiple data variables in ABAP memory, but my limitation is I have to loop an Itab and export these data one by one to memory. I tried using EXPORT....TO memory in the following way:
    LOOP AT itab.
        EXPORT itab-field1 TO MEMORY ID 'CONST_MEMID'.
    ENDLOOP.
    The problem is I dont want the previous contents to be overwritten. I mean the 2nd loop should not overwrite the contents written in the first loop. Any ideas how this can be achieved?
    Thanks
    SCPA.

    I don't think you can do that, how would you do the IMPORT afterwards without knowing the type of the data in memory?
    If you can access the itab with the fieldnames (and the actually named data structures) from the place where you do the import, then you could create an incremental memory ID for each cycle, and do the import in the same order (generating the ID in the same way).
    Something like this:
    Export:
    LOOP AT itab. (ITAB in turn contains names of fields)
    ASSIGN (itab-field1) TO <fs>.
    l_mem_id = sy-tabix.
    CONDENSE l_mem_id.
    CONCATENATE 'CONST_MEMID' l_mem_id INTO l_mem_id.
    EXPORT <fs> TO MEMORY ID l_mem_id. (Here <fs> can sometimes be a field or ITAB or a deep table)
    ENDLOOP. 
    Import:
    LOOP AT itab. (ITAB in turn contains names of fields)
    ASSIGN (itab-field1) TO <fs>.
    l_mem_id = sy-tabix.
    CONDENSE l_mem_id.
    CONCATENATE 'CONST_MEMID' l_mem_id INTO l_mem_id.
    IMPORT <fs> FROM MEMORY ID l_mem_id. (Here <fs> can sometimes be a field or ITAB or a deep table)
    ENDLOOP. 
    If you really need to use only one EXPORT / ID, then I think you could use the alternative a®s suggested, generating one parameter for each itab entry. But still you'll need to generate that again when you do the import as you do for my solution.
    Hope this helps.
    Regards
    Edited by: Alejandro Bindi on Dec 16, 2008 8:59 PM
    sy-tabix, not sy-index.

  • Not able to rename the existing file

    Hi All,
    I have a java file Test.java in which i am doing the following stuffs.
    1) I am creating a new file
    2) Entering contents in the existing file
    3) Renaming the existing file--When i am doing this i am not getting any error but the existing file is not renamed
    The contents of the file Test.java*************************
    package com.fidelity.ereview.utils;
    import java.io.*;
    public class Testing {
         public static void main(String[] args) throws IOException {
              File f = new File("D:/TCS/myfile1.txt");
              f.createNewFile();
              System.out.println("new file " + f + " is created");
              FileOutputStream fileobj = new FileOutputStream(f);
              DataOutputStream writeInsideFileObj = new DataOutputStream(fileobj);
              writeInsideFileObj.writeBytes("sunita");
              writeInsideFileObj.writeBytes(",");
              writeInsideFileObj.writeBytes("choudhury");
              File f2 = new File("D:/TCS/myfile2.csv");
              f.renameTo(f2); **// renames the file HERE The file is not renamed**
    Kindly anybody help me....

    import java.io.*;
    public class Testing {
    public static void main(String[] args) throws IOException {
    //File f = new File("D:/TCS/myfile1.txt");
    File f = new File("D:/TCS/myfile2.csv");//above replaced by
    f.createNewFile();
    System.out.println("new file " + f + " is created");
    FileOutputStream fileobj = new FileOutputStream(f);
    DataOutputStream writeInsideFileObj = new DataOutputStream(fileobj);
    writeInsideFileObj.writeBytes("sunita");
    writeInsideFileObj.writeBytes(",");
    writeInsideFileObj.writeBytes("choudhury");
    writeInsideFileObj.close();//I added
    fileobj.close();//I added
    //File f2 = new File("D:/TCS/myfile2.csv");
    //f.renameTo(f2); **// renames the file HERE The file is not renamed**
    }Why create a file add data to the file and then rename to change the file type?
    You can add data to any file type with java.

  • Append data into the file in application server

    Hi Friends,
    I have an issue where i have a job which has three different stepst for same program. If i run the job the program will create a file in the application server and append the other two steps in the same file without overwriting the file or creating a new file.
    My problem is like its creating three different files in application server for that particular job since it has three steps . Its not appending into one particular file .
    I am using the FM 'Z_INTERFACE_FILE_WRITE' where i have used the pi_append in the exportng parameter . ITs working when i specify the file in local system. It is appending correctly when i run the report normally to apppend into local system.
    But when i schedule a job to append the file in application server its creating three different files.
    Kindly help me if anyone is aware of this issue
    Thanks in advance
    Kishore

    Hi,
    Please use open dataset to write and append files.Please check the logic of Z FM which you are using .
    To open and write into a file  use
    OPEN DATASET FNAME FOR OUTPUT.
    To append data into existing file use
    OPEN DATASET FNAME FOR APPENDING.
    To write into file:
    v_file = file path on application server
      OPEN DATASET v_file FOR output.
      IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
       TRANSFER data TO v_file.
      ENDIF.
    CLOSE DATASET v_file.
    For appending :
    OPEN DATASET v_file fOR APPENDING.(file is opened for appending data  position is set to the end of the file).
    Thanks and Regards,
    P.Bharadwaj

  • How to add an data in an existing file

    Hi, I have the following problem:
    I  am implementing a data logger using the RS232 port and Labview, I have not problems with data capture my problem occurs when I store the data in a file, I need that every time the data is registered this data must be updated in the file
    How  do I can do this?

    If the data file is some type of delimited text (tab-delimeted text, csv, etc) you can just use the Write to Spreadsheet File.
    Just make sure you wire True to "Append to File?"
    Cory K

  • Get-Content and add Date and Time in a new file

    Hello,
    in a existing file I have data like:
    1;Idle
    5;chrome
    1;spoolsv
    Now I need to grab the content and add date and time in front of each line and save it to another file like:
    07.04.2015;10:18;1;Idle
    07.04.2015;10:18;5;chrome
    07.04.2015;10:18;1;spoolsv
    But I don't have any idea how I could solve this challange. Does anyone have a helping hand for me?
    Greetings

    Hello,
    If you need a new file with the desired output try this
    get-content .\current.txt | Foreach-Object{ $dntv = (get-date) ; "$dntv" + $_} | Out-File newfile.txt
    regards,
    V
    Venu

Maybe you are looking for

  • What version of ACR do I need for my Sony A37 for Elements 6 ?

    I am having a problem finding the version of ACR I need for my Sony Alpha37 - I use Elements 6

  • Method that can be used for multiple views

    Hello, I've got three tables: Person, Company, Adress. Each Person/Company can have mulitple adresses. So Adress has a foreign key to Person and Company. In ADF BC I've created two views for Adress: PersonAdressView, that has PersonView as Master and

  • Stuck Pixels on Vado HD

    I just bought a new Vado HD. After testing it out?with low-light shots I realised 2 stuck red pixels. See my YouTube video: http://www.youtube.com/watch?v=no57SZALlQQ Has anyone encountered this problem?

  • 10.4.11 update messes with Boot Camp beta

    I am posting this again as my post is way down another discussion. I did the update yeterday without knowing about the bug. Now Windows XP won't start up in boot camp. This is really annoying. Mac OS X boots fine. So. Can I downgrade from 10.4.11 to

  • 1.1.0.21 Sorting columns that are named with lower case characters not work

    I'm trying to sort my results in the table's data tab. I have the colums defined as: Help_ID, Help_Term, Help_Desc Trying to sort by Help_ID fails. The application tries to sort by HELP_ID rather than "Help_ID". Quotation marks may need to be added h