Results 1 to 2 of 2
  1. #1
    peller is offline Member
    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Default Direct file IO with Java ?

    Hi,
    is there a way to use direct file I/O with Java on Linux ?

    With C I open a file with the O_DIRECT parameter to avoid the Linux buffer cache.

    Best regards
    Paul

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,247
    Rep Power
    19

    Default Re: Direct file IO with Java ?

    Is this what you were looking for?
    Reading, Writing, and Creating Files (The Java™ Tutorials > Essential Classes > Basic I/O)

    Note that NIO.2 was introduced in Java 7.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 05-04-2012, 08:01 PM
  2. Direct CMD output to a file
    By yahyaaa in forum New To Java
    Replies: 9
    Last Post: 01-31-2011, 11:19 AM
  3. Direct to URL to download java using JOptionPane
    By Basit in forum Java Applets
    Replies: 6
    Last Post: 08-21-2009, 08:34 PM

Posting Permissions

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