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
13
votes
2 answers

Saving the TextBox Values in Registry

I need some guidance in reading/writing/saving the values in Registry.I am new to this concept of saving things in registry I have a Winform where i have to read/write to a App.config file and change the username and password using a winform.In my…
user1410658
  • 551
  • 3
  • 10
  • 20
12
votes
2 answers

Best way for local HTML file to communicate with (read/write) local .xlsm Excel file

I'm a teacher. My grade book is a .xlsm file, located in my Google Drive folder. I'm building a web app, also in my Drive folder, that shows the students names arranged according to the seating chart. I want to run the app on my Android phone, and…
user3925803
  • 3,115
  • 2
  • 16
  • 25
11
votes
3 answers

Deleting contents of text file

I'm reading and writing to a text file. There is an instance where I want to delete the contents of the file (but not the file) as a kind of reset. How can I do this? if ((dirs) != nil) { var dir = dirs![0]; //documents directory let path =…
TurtleFan
  • 289
  • 2
  • 17
11
votes
4 answers

read and write to same socket (TCP) using select

We're writing a client and a server to do (what I thought was) pretty simple network communications. Mulitple clients connect to the server which then is supposed to send the data back to all other clients. The server just sits in a blocking select…
MarcWan
  • 2,943
  • 3
  • 28
  • 41
10
votes
1 answer

How to write a pandas dataframe to CSV file line by line, one line at a time?

I have a list of about 1 million addresses, and a function to find their latitudes and longitudes. Since some of the records are improperly formatted (or for whatever reason), sometimes the function is not able to return the latitudes and longitudes…
Kristada673
  • 3,512
  • 6
  • 39
  • 93
10
votes
1 answer

Is SDK for NFC reader/writer acr122u device required to build read/write application?

i have nexus s, nexus 4 and 6 mifare nfc tags, and want to make an desktop application with nfc reader/writer acr122u device (which i haven't bought it yet). But apart from android sdk, is there some other SDK needed for making an desktop…
Shantanu
  • 121
  • 1
  • 1
  • 7
10
votes
3 answers

Read and Writing to a file simultaneously in java

I'm reading a file line by line, and I am trying to make it so that if I get to a line that fits my specific parameters (in my case if it begins with a certain word), that I can overwrite that line. My current code: try { FileInputStream fis =…
iphonedev7
  • 295
  • 1
  • 7
  • 17
10
votes
4 answers

How to read/write file with iOS, in simulator as well as on device?

As I need to read a file when my app is launched and write it sometimes while using it, I tried to reach it with : NSString *dataFile = [[NSBundle mainBundle] pathForResource:@"data" ofType:@"txt"]; NSLog(@"%@",dataFile); And the file, that should…
Rob
  • 15,732
  • 22
  • 69
  • 107
9
votes
2 answers

Read and Write access for FinderSync extension in a sandboxed environment

The scenario The user right-clicks a directory in Finder and finds a custom MenuItem. Clicking that Item will tell my app to open up a window where the user can do his work. When he is finished files need to be written to to the folder he selected…
Enie
  • 649
  • 5
  • 18
9
votes
1 answer

What happens if you don't close a filehandle in Perl?

If I am writing a Perl script that overwrites STDERR with a duplicate of STDOUT but I never restore the filehandle, what happens at the end of script execution? I can't find anything that warns against what actually occurs or doesn't occur. I'm…
0x1F602
  • 865
  • 5
  • 22
8
votes
1 answer

How to write to a .txt file in Laravel?

I want to get the value of activationCode from database and then store it into a .txt file. This is what I tried to so far. Please help! registerController.php protected function create(array $data) { $user = User::create([ …
Shamima Saleem
  • 143
  • 1
  • 1
  • 9
8
votes
2 answers

Android read/write permission of a folder

I am doing a new android app. I want to create a folder in "Android" folder which is available in sdcard. Before that I want to check whether the folder has read/write permission. How can I get that? can anyone help me to do this.
Manoj
  • 3,947
  • 9
  • 46
  • 84
7
votes
1 answer

C Disk I/O - write after read at the same offset of a file will make read throughput very low

Background: I'm developing a database related program, and I need to flush dirty metadata from memory to disk sequentially. /dev/sda1 is volumn format, so data on /dev/sda1 will be accessed block by block and the blocks are adjacent physically if…
Chia
  • 102
  • 6
7
votes
2 answers

Writing and reading to linux /proc/... filesystem without lseek()

In this source code http://man7.org/tlpi/code/online/dist/sysinfo/procfs_pidmax.c.html the file /proc/sys/kernel/pid_max is first simply read (using the read syscall) and then simply written (using the write syscall). Why is it no necessary to lseek…
levzettelin
  • 2,600
  • 19
  • 32
7
votes
6 answers

Can we modify the value of a const variable?

From this article. Another use for declaring a variable as register and const is to inhibit any non-local change of that variable, even trough taking its address and then casting the pointer. Even if you think that you yourself would never do this,…
md5
  • 23,373
  • 3
  • 44
  • 93
1
2
3
42 43