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
-1
votes
1 answer

How to speed up reading and writing binary file operation in python?

I have got a binary file(400MB) that I first want to read and then write to another file in python.Currently what I'm doing is very basic. file = 'file.bin' with open('temp','wb+') as dest: for chunk in file.chunks(): …
The Mask
  • 390
  • 3
  • 17
-1
votes
1 answer

Modifying objects in binary file

Considering I have an object from a custom class and I write it to a .dat file using FileOutputStream and ObjectOutputStream . How will I modify a object present in the file? I can only read or write objects into a file.. I know that we can create a…
-1
votes
1 answer

Prioritization of pthread_rwlock?

Considering this example code: #include #include #include #include void *func1(void *); void *func2(void *); static pthread_rwlock_t rwLock = PTHREAD_RWLOCK_INITIALIZER; int main() { pthread_t…
user9262126
-1
votes
1 answer

Conflicting types error and pointer from integer without cast warning C

I am trying to learn read/write programs in C and I found an example online that I thought I should start studying. When I tried compiling the code though, I get a few warnings and one error like this: read.c:21:8: error: conflicting types for…
-1
votes
1 answer

SQL Query Using Cursor and table variable for output table

can you please suggest using loops (IF else) ...like reading the data using conditions i.e. <=5, and by insert statement storing it in a temporary table variable and by using final select statement we are getting the output... plz help Input table…
-1
votes
1 answer

Buttons sent commands SerialPort1_DataReceived (EventArgs e)to send and receive responds,create conflict with those that don need it

//Button need DataRecieved event handler private void LoggedDataBtn_Click(object sender, EventArgs e) { //When LoggDataBtn is pressed it Send the command LogToShow to device string LoggedDataTOshow = "?R\r\n"; string commForMeter =…
JimB
  • 11
  • 5
-1
votes
1 answer

Dynamo db read/write

Scenario: If I read/ write an item of 10Bytes, Dynamo DB rounds up the throughput to 4Kb for read and 1Kb for write. If my entire DB consists of items which are 10-50 Bytes and I expect around 10 read/write operations per second, it becomes very…
-1
votes
1 answer

Reading and writing non .txt files with Python

Please help me to figure out the more adequate solution to the following problem, if you will. I am writing the code for an app that replaces words on a text, from a certain way of writing them to another way of writing it; as, for example, replace…
-1
votes
1 answer

Android Download Zip to SD card, zip not getting read

tried following code to download zip to sd card, i get NullpointerException. when tried some interrogations i come to know that the zip file is not getting downloaded actually. So would you please help whether code needs some changes or anything…
ruturaj
  • 29
  • 2
-1
votes
1 answer

python read in a txt file and assign strings to combined variable (concatenation)

I have a text file (Grades) where I'm given last name, first name, and grades. I need to read them in, assign them to variables, and write them to a different text file (Graded). I'm a beginner and this is my first hw assignment. There are errors I…
-1
votes
1 answer

How to prevent file from access if any file failed to write to a required folder

I have 3 xml file to be written to a folder for client. while writing the 2 files got written perfectly but 3rd file failed. what are the ways by which I can prevent the client to open any file or all the files got deleted or locked if anything…
Akhire
  • 1
  • 1
-1
votes
1 answer

how to Change the file Attribute from read-only to read/write using Python?

I have a bunch of files which have read-only status. It is not possible to change the status manual so I was thinking of a code that I could say change the status of all the files in one folder from read-only. However, I can't find the right coding.…
lili
  • 1
  • 2
-1
votes
2 answers

read excelFile in java Apache Poi?

I tried to read an excel file in Anylogic software(is based on Eclipse). I use Poi to read the file but i get java.io.FileNotFoundException when I launch the program. Can you help me plese? This is the code: FileInputStream fileInputStream = new…
leovall93
  • 1
  • 1
-1
votes
3 answers

Save diffrent kind of variables to a file

I want to save diffrent kind of variables to a file. Currently I am using DataOutputStream to do so. First i save an array of shorts, then i save another array of shorts, then i want to save an array of longs. The problem is when i read the file, I…
Alexanus
  • 679
  • 4
  • 22
-1
votes
2 answers

How to modify paramater value of a method of class through another java class

I want to modify parameter value passed to a particular method of a java class. Here is the java file: package config; public class ABC extends LineAvailabilityNew { public void doMessageDataOverrides() throws MessageHandlerExcection { …
Neha S
  • 283
  • 1
  • 3
  • 17