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

Swift - Read/write array of arrays to/from file

Here are my files. How can I write this array: var listOfTasks = [["Hi", "Hello", "12:00"],["Hey there", "What's up?", "3:17"]] to a .txt file (file.txt)? I know there are other questions about this, but they're in other languages (not Swift). I'd…
atirit
  • 1,492
  • 5
  • 18
  • 30
4
votes
2 answers

Read/Write between Mac and iPhone using libusbmuxd

I current use libimobiledevice to work around Mac and iPhone. libusbmuxd is very helpful to get device (iPhone/iPad) information when connects to Mac app through USB. I want more, I want to read/write data (a file like document, image, video, ...)…
Scofield Tran
  • 828
  • 1
  • 18
  • 30
4
votes
1 answer

In golang what error will TCPConn.Write/Read return?

In golang, how would you handle error return by TCPConn.Read/Write? this document did not say anything about read/write errors.
zzn
  • 2,376
  • 16
  • 30
4
votes
4 answers

Faster bash writing to file

I'm reading a file in bash, taking the values out and saving them to another file. The file has ~100k lines in it, and it takes around 25minutes to read and rewrite them all. Is there maybe some faster way to write to a file, because now I'm just…
Luka
  • 255
  • 1
  • 5
  • 16
4
votes
2 answers

How to write/read a txt file from sdcard in Unity?

I am a newbie in Unity. I have a problem like this. I have high score of my game and i want to save it to a text file on mobile device. In this situation, i want to save that text file to my sdcard but i don't know how. This code below shows how it…
Nghi Nguyen
  • 121
  • 2
  • 8
4
votes
1 answer

Python open file in shared mode

I've seen a few questions related to this but nothing that definitively answers my question. I have a short python script that does some simple tasks, then outputs some text to a log file, waits for more input, and loops. At times, the file is…
Mike T
  • 482
  • 1
  • 6
  • 16
4
votes
2 answers

How to repeatedly pass inputs and outputs between a C# Stream and a Python Script?

I'm trying to run a Python script from C# as a stream, and to repeatedly pass inputs and outputs between Python and the stream, using StreamWriter and StreamReader. I can read and write, but apparently only once, and not multiple times. (Which is…
4
votes
2 answers

Loading older versions of an object from a file

What happens if I try to load an older version of an object from a file? For example if I created an object, then saved this object to a file using a FileOutputStream. Then if I added a field, and attempted to reload this object would Java not…
Ned
  • 45
  • 3
4
votes
1 answer

How can use memory BIO's pointer for reading and writing?

First I create Memory BIO like this BIO *mem = BIO_new(BIO_s_mem()); BIO_puts(mem, "Hello World\n"); and get the pointer like this BUF_MEM *bptr; BIO_get_mem_ptr(mem, &bptr); My doubt is how can I write and read by using bptr pointer? Is this…
TamiL
  • 2,706
  • 4
  • 24
  • 44
4
votes
3 answers

Shell Script - list files, read files and write data to new file

I have a special question to shell scripting. Simple scripting is no Problem for me but I am new on this and want to make me a simple database file. So, what I want to do is: - Search for filetypes (i.e. .nfo) <-- should be no problem :) - read…
Thomas
  • 53
  • 2
  • 9
3
votes
1 answer

Are Posix I/O operations on filenames sequentially coherent?

I would like to know whether there is a Posix standard guarantee that modifications to a file are guaranteed to be visible through repeated open/close calls on the same file name. For exposition, consider this Bash…
Kerrek SB
  • 464,522
  • 92
  • 875
  • 1,084
3
votes
0 answers

Override master db selection for splitting read write queries in rails

To distribute load and improve the database performance, I am trying to split read-write queries with some custom modification. I am using makara(https://github.com/instacart/makara) gem for the same in my Rails application. The same is working fine…
Aman Garg
  • 4,198
  • 2
  • 21
  • 29
3
votes
1 answer

simultaneous 2 or more read/write to/from harddisk

it is said that there is only one spindle in hard disk which reads or writes data to/from hard disk, how is it possible to write or read 2 or more data's to/from hard disk SIMULTANEOUSLY. the operating system used is windows xp.EXAMPLE, i need to…
indu
  • 31
  • 1
  • 2
3
votes
1 answer

C - read() returns negative number

Im trying to write a simple program that hooks into another binary (setuid binary, child process run it) using ptrace(), opens a 'flag' file and prints its content. The hook works, and i can control the binary using ptrace commands. I've executed…
meowi
  • 66
  • 7
3
votes
0 answers

Change permissions for a memory region shown in /proc/pid/maps

I want to change the read-write-execute permissions for a specific memory region in the same process. The following is one of the entries from /proc/pid/maps. f606e000-f60e4000 r-xp 00000000 08:04 1873848 Is there any function to change r-xp to…
mtpc1486
  • 43
  • 1
  • 5