io - Does java 6 support reading from and writing to the same file at once? -


this branches 2 questions:

  1. i know it's possible create filereader , filewriter same file @ once. filereader , filewriter play each other, i.e., newly written content guaranteed visible reader while both still open? there guaranteed behavior way interact each other?

  2. is possible create 1 entity can read, write, , seek within file? example, equivalent python's open(filename, "r+"). if such entity exists, there 1 in java.io or third party?

you can use randomaccessfile


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -