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

Write/read a Common Lisp (SBCL) hash-table, or alternative

I would like to write/read a hash-table to/from disk, but it is not a (print)able object. I won't know the key names so I can't think of a way to do it manually. I read that there might be distribution-specific ways to do this; is there anything for…
Toerndev
  • 715
  • 1
  • 6
  • 21
6
votes
1 answer

How do I calculate the dsp address for a readwrite application in the beagleboard?

I'm trying to run the readwrite example in the dsplink on the beagleboard. To do so, I need to give the dsp address as a command line parameter. How do I know what is the dsp address? I have the config file of OMAP5030. Here's a snapshot of the…
snakile
  • 52,936
  • 62
  • 169
  • 241
6
votes
4 answers

Delphi property read/write

is it possible to have different kind of results when declaring property in delphi class? Example: property month: string read monthGet(string) write monthSet(integer); In the example, I want, with the property month, that when I : READ, I get a…
img.simone
  • 632
  • 6
  • 10
  • 23
6
votes
0 answers

Node JS mysql native drivers - load balancing splitting read/write queries

We have an existing high traffic PHP web app which uses the MySQL Native driver's load balancing facility to split read & write queries between a master and slave database. I'm migrating the API part of this app to NodeJS, currently I'm using the…
tja-dev
  • 61
  • 1
6
votes
1 answer

File locks in R

The short version How would I go about blocking the access to a file until a specific function that both involves read and write processes to that very file has returned? The use case I often want to create some sort of central registry and there…
Rappster
  • 12,762
  • 7
  • 71
  • 120
6
votes
3 answers

Reading a file without causing IOException on 3rd party program

I'm reading a file which is periodically being written to by a 3rd party program. Im reading using the below FileStream: using (FileStream fs = new FileStream( FullPath, FileMode.Open, …
CathalMF
  • 9,705
  • 6
  • 70
  • 106
5
votes
1 answer

Adding metadata in EPS file using Java

I'm currently reading and writing .EPS file to manipulate/add metadata (Keywords and Tags) in the file. PS: File encoding is Windows-1251 or Cp1251 -Russian- I'm reading EPS file like this: (String lines; is a global variable) try (BufferedReader br…
user1773603
5
votes
1 answer

What is the relation between fopen and open?

I am working on a project for a class and we were given a .c file containing the following code: int fd = -1; if (fd < 0) { fd = open ("my_dev", O_RDWR); if (fd < 0) { perror ("open"); return -1; } ... So I understand that it is…
botch
  • 167
  • 1
  • 10
5
votes
1 answer

How to count the amount of words in a text file in Lua

I was wanting to ask what the steps are to creating a Lua program that would count the amount of words in a .txt file? I'm only familiar with how to count characters and not strings.
Alex111
  • 167
  • 1
  • 4
  • 14
5
votes
4 answers

Read Write Integer Array Into Shared Memory

The following is the READER-WRITER code for my shared memory. Read Code- int main(){ int shmid; int *array; int count = 5; int i = 0; key_t key = 12345; shmid = shmget(key, count*sizeof(int), IPC_EXCL); array = shmat(shmid, 0,…
Ansh David
  • 654
  • 1
  • 10
  • 26
5
votes
2 answers

How to read/write a Fortran namelist with Python?

I would like to know how to easily read and write values from a Fortran namelist file in Python.
froggy
  • 513
  • 2
  • 6
  • 21
5
votes
1 answer

Issue getting the read/write split to work with PHP mysqlnd_ms

I'm trying to setup the PHP mysqlnd_ms extension and I'm having some issues. So far here is what I have done: -compiled PHP from source while enabling mysqlnd -Installed mysqlnd_ms (If I run pecl info mysqlnd_ms I do get the information about the…
Max
  • 12,794
  • 30
  • 90
  • 142
4
votes
3 answers

How to read/write to a JSON file in node.js

I am fairly new to node.js and i am wondering how to (or even if) i can read and write to a JSON file. I am trying to create an accessible punishment history. Ideally i would want to be able to create something along the lines of…
iris87
  • 103
  • 1
  • 2
  • 11
4
votes
2 answers

python - lists are being read in from csv as strings

I have a dictionary that uses an strings(edit) as keys and stores lists of lists as values. dict = {key1: [[data1],[data2],[data3]], key2: [[data4],[data5]],...etc} EDIT: where the data variables are rows containing different data types from a…
Ben Romano
  • 98
  • 1
  • 5
4
votes
3 answers

How to read millions of rows from the text file and insert into table quickly

I have gone through the Insert 2 million rows into SQL Server quickly link and found that I can do this by using Bulk insert. So I am trying to create the datatable (code as below), but as this is a huge file (more than 300K row) I am getting an…
Rocky
  • 4,454
  • 14
  • 64
  • 119
1 2
3
42 43