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

Understanding the writing to flash process in the STM32 reference manual

I am programming the stm32l412kb where at one point I will be writing data to flash (from UART). From the stm32l41xx reference manual, I understand the steps in how to clear the memory before writing to it but on page 84 there is one step that I do…
arry_h
  • 167
  • 1
  • 3
  • 12
3
votes
1 answer

Why Does Browser Keep Loading When Using createReadStream() Node.js

New to Node.js I do understand that createReadStream() function is better for the performance than readFile(), because createReadStream() reads and writes data in chucks while readFile() first reads the whole content. Thus if the file is large,…
O Connor
  • 4,236
  • 15
  • 50
  • 91
3
votes
0 answers

Errors while trying to build ReadWrite example in Code Composer Studio 4

I'm trying to build the Read Write example in CCS4 and get many "undefined identifier" errors: identifier "MAX_PROCESSORS" is undefined identifier "MPCSOBJ_PROC_PADDING" is undefined identifier "MPCS_TURN_PADDING" is undefined etc. These are…
snakile
  • 52,936
  • 62
  • 169
  • 241
3
votes
1 answer

Flutter bad file descriptor error on MacOS

I am running Dart 2.0.0 with VSCode 1.26.1. I constantly see the following error written in Console under MacOS High Sierra 10.13.6: nw_path_close_fd Failed to close guarded necp fd 6 [9: Bad file descriptor] As soon as I close VSCode the dart…
Hahnemann
  • 4,378
  • 6
  • 40
  • 64
3
votes
0 answers

How can we use Apache POI library for .xls file in iOS

I want to read, write and edit .xls files in iOS, There are some libraries like JXSL(for writing) and DHXLS (for reading), But I want to edit the existing file. Any help will be appreciated
Jas_meet
  • 366
  • 1
  • 20
3
votes
1 answer

Python IO - Is it safe to read a text file in python while other program is writing to it?

I want to read contents of a text file that is continuously being written by another program. How safe it is to read contents of that file. Will it corrupt the text file?
3
votes
0 answers

MacOS Sandboxing WRITE files in App Container

I am trying to enable sandboxing on an application I am working. Although the application is heavily on a file system, for creating and saving and loading user files, It doesn't need the files to be located outside of the App container. But by…
user7002255
3
votes
1 answer

SslStream EndRead gets first 1 Byte

I've written a TcpClient and Server which are communicating via an SslStream. The communication works, but when i send a message from the Client to the Server, first the Server reads 1 Byte, and in the next step the rest. Example: I want to send…
DirtyNative
  • 2,553
  • 2
  • 33
  • 58
3
votes
2 answers

D - Is there a bytebuffer for reading and writing bytes?

I just started learning D today and I really need to read and write data like this: byte[] bytes = ...; ByteBuffer buf = new ByteBuffer(bytes); int a = buf.getInt(); byte b = buf.getByte(); short s = buf.getShort(); buf.putInt(200000); Is there…
user3441843
  • 137
  • 1
  • 7
3
votes
1 answer

Bash: write on device then read from it

I'm developing a very small program with a weight sensor connected to S0. Here is how I initialize the serial port : stty -F /dev/ttyS0 9600 min 60 time 1 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok…
Sw0ut
  • 741
  • 2
  • 9
  • 29
3
votes
0 answers

Read and Write file that is used by another program

I am trying to access a file using the folowing code: if (File.Exists(path)) { var lines = File.ReadLines(path); foreach (string s in lines) { Match m = Regex.Match(s, findComment); if (m.Success) { …
Xenira
  • 81
  • 7
3
votes
2 answers

Overwriting existing cells in an XLSX file using Python

I am trying to find a library that overwrites an existing cell to change its contents using Python. what I want to do: read from .xlsx file compare cell data determine if change is needed. change data in cell Eg. overwrite date in cell 'O2' save…
user2853442
  • 331
  • 5
  • 15
3
votes
1 answer

Android: How to read files in Java app from MTP

I need to be able to read a phone's file system from a desktop application in Java. I don't want to use adb. In old android devices/versions there was Usb Mass Storage, but on all the newer devices this option doesn't exist. So can some one help…
AlexD
  • 4,062
  • 5
  • 38
  • 65
3
votes
2 answers

Reason why use loff_t *offp instead of direct filp->f_pos usage

In following functions, taken from LDD: ssize_t read(struct file *filp, char __user *buff, size_t count, loff_t *offp); ssize_t write(struct file *filp, const char __user *buff, size_t count, loff_t *offp); Why there is the need of loff_t *offp?…
Diego A
  • 51
  • 1
  • 3