Questions tagged [read-write]

Read/write is a mode of access designating the intent or ability to perform both read and write operations on a entity.

Read/write typically denotes the ability or desire to both view and alter the contents on a file or other writable object.

In many cases this would suggest full access to a resource expect possibly in terms of use (e.g. a user have read and write but not execute access to a binary).

633 questions
3
votes
2 answers

Unable to set Read-Write permission for twitter app

I'm stuck in a weird issue while creating a twitter app. Here i'm supposed to build an app with read-write permission through Twitter's Application Management service ( ridiculous service actually :/ ). So i've created an app so far. But the problem…
3
votes
1 answer

How do I deal with greedy write locking in MongoDB?

My question - is there a way to read and write to the MongoDB simultaneously? Or make MongoDB reader greedy? I have a web application that uses MongoDB for the database. In my application, I have a Serial Event that I am listening for. On this…
Lauren
  • 147
  • 1
  • 3
  • 10
3
votes
0 answers

Asynchronous File copy in java

I want to know how we can move a file to a different location asynchronously, basically one of my program is keep on appending data to a temporary file and another is checking its size on exceeding the predefined size of the temporary file it should…
3
votes
1 answer

PHP Read/Write files on remote server

I'm making a utility that provides a GUI to easy edit certain values in a csv file on a remote server. My boss wants the utility in php running on the private webserver. I'm new to php, but I was able to get the GUI file modifier working locally…
3
votes
1 answer

Flushing fopen()'ed files opened in update mode,between read and write operations.Explicit flushing needed?

I have read this about the switch between read and write operations(and vice-versa) for files opened for update using fopen() (LINK) "For files open for update (those which include a "+" sign), on which both input and output operations are allowed,…
Thokchom
  • 1,602
  • 3
  • 17
  • 32
3
votes
1 answer

Ruby on Rails - How to manage multiple access to shared file

I am quite new to Rails and I need to implement a project for my University. This project consists of a website that will use a binary file as database. So I need to know a thread safe way to read and write this file, taking into consideration that…
Guilhermevrs
  • 2,094
  • 15
  • 15
3
votes
1 answer

Can't read/write files under Tomcat 6 installed on AWS EC2

I have a webapp running on Tomcat 6, one class checks for existence of directory and creates it if doesn't exist - // make sure path exists File f = new File(value); if (!f.exists()) { if (!f.mkdirs()) { throw new…
Kof
  • 23,893
  • 9
  • 56
  • 81
2
votes
1 answer

Read text files with multiple lists with spacings and commas exist between elements in the lists into pandas dataframe

I have a text file called tropical.txt that have multiple lists and each list is separated by a new line. Notice the comma is surrounded by spaces. space here and space here | | ['papaya' , 'mangosteen' , 'banana'] [] ['coconut' ,…
nerd
  • 473
  • 5
  • 15
2
votes
1 answer

Text file is not being created in flutter

Im trying to create a way to add a list of favourite names. When I submit a name it will update a list. then when i press save it should write the list to a text file. but when i run it i get the error (OS Error: No such file or directory, errno =…
2
votes
3 answers

Finding which files are being read from during a session (python code)

I have a large system written in python. when I run it, it reads all sorts of data from many different files on my filesystem. There are thousands lines of code, and hundreds of files, most of them are not actually being used. I want to see which…
amit
  • 3,332
  • 6
  • 24
  • 32
2
votes
0 answers

Read line by line and insert data ( 16 GB JSON) too slow ( MySQL + JAVA spring boot )

I have B2B2C business and I have few suppliers who keep update my data. Every week I need to update around 30GB JSON ( one file ). I would like to know about faster way than readline of BufferedReader the file type is ZStandard(zstd). For now its…
2
votes
2 answers

Nullsoft installer, Win7, how to install read/write data directories?

We created an installer (Nullsoft Install System v2.46) that installs the application, plus some (nested) data directories, which include (text) data files that are read/write accessed from the installed application. Everything works fine on WinXP: …
charley
  • 5,913
  • 1
  • 33
  • 58
2
votes
2 answers

configparser reading and writing

I'm using Python 3.2 and the configparser module, and running into some problems. I need to read, then write to a config file. I tried the following: import configparser data = open('data.txt', 'r+') a =…
Hypercube
  • 1,181
  • 2
  • 10
  • 16
2
votes
1 answer

Difference between using blocking write and event.wait() with non-blocking write on OpenCL

This may end up being silly, but I stumbled into this question and I am not being able to answer it myself. What is the practical difference between using the following two pieces of code when writing to a buffer in OpenCL? Blocking…
2
votes
1 answer

read / write mp4 id3 tags with PHP

I need to be able to at very least read and preferably write id3 tags connected to an mp4 video file. I've looked into using getId3() but it's got so many functions that finding those applicable to mp4 video files is difficult and the write demo…
Dave
  • 48
  • 1
  • 7