Forums Register Login

how top read and write into file simultaneously

+Pie Number of slices to send: Send
My problem is lets say there is one thread which write into file a.txt and other thread will read the same file a.txt simultaneously ,First thing is it possible and yes HOw ...sample code for above is really helpful for me
+Pie Number of slices to send: Send
Why do you need to do this? Perhaps there is a better solution. RandomAccessFile might allow this, but I wouldn't recommend the approach to begin with.
Destiny's powerful hand has made the bed of my future. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1598 times.
Similar Threads
console output
File
Not able to write the output to the file.
file Path representation in different OS??
Multitread synchronization
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:21:20.