Results 1 to 4 of 4
  1. #1
    damuammu is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default writing the files for particular time

    Hi friends,

    i have a quick question

    i have .txt files a, b ,c,.....
    i have to write the these files in to single file for particular time period lest take it as some 60 sec and have to save in pdf format
    till for 60 sec we have to write to single file and save it by naming it with time stamp
    after 60 sec, we have rite to new file from the cursor were it got stopped

    please anyone can hlep on this.

    Thanks,
    damu

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,252
    Rep Power
    19

  3. #3
    damuammu is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    Hi Darryl ,

    I donot have knowledge of "cross postings"

    but my intension is to get hlep from others by posting it in multiple forums

    please can you help me atleast

    Thanks,
    Damodar.

  4. #4
    lovelesh is offline Senior Member
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    135
    Blog Entries
    1
    Rep Power
    0

    Post

    You can take hint from log4j source.

    It creates a new file, as soon as the existing file reaches the specified size. In your case, it needs to be time based rather than size based.

    use timertask to send the time elapsed event to your writer.

Similar Threads

  1. writing to binary files
    By TopNFalvors in forum New To Java
    Replies: 10
    Last Post: 03-04-2011, 08:29 AM
  2. Reading / Writing files
    By Learning Java in forum New To Java
    Replies: 6
    Last Post: 08-08-2010, 09:21 PM
  3. writing ethernet data in to files
    By abdullahansari in forum New To Java
    Replies: 8
    Last Post: 06-23-2010, 10:13 PM
  4. Applets writing to files
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-20-2007, 08:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •