The Artima Developer Community
Sponsored Link

Java Answers Forum
Problem with files

1 reply on 1 page. Most recent reply: Mar 27, 2006 2:58 PM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
patuco s.

Posts: 12
Nickname: patuco
Registered: Feb, 2006

Problem with files Posted: Mar 14, 2006 1:23 AM
Reply to this message Reply
Advertisement
hi everyone,
i have a problem, i have one app which calls another java app using runtime functions.
Ok the thing is that i need that one app will write in a file and the other one read and delete the lines read from the same file almost in a syncrhonous way, it means, both app use the same file but in different ways, anyone knows how to do it?
Also I though it could be done with pipes but even not a clue. Thanks


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Problem with files Posted: Mar 27, 2006 2:58 PM
Reply to this message Reply
Look into the NIO...
If you need to work synchronously, you may have to work with memory mapepd files or just the 2 process should comminucate over a socket !

\T,

Flat View: This topic has 1 reply on 1 page
Topic: using enumerations and Switch Previous Topic   Next Topic Topic: almost compiled

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use