read-write Questions

9

Solved

I tried to use the read/write file descriptor in bash so that I could delete the file that the file descriptor referred to afterward, as such: F=$(mktemp) exec 3<> "$F" rm -f "$F" echo "Hel...
Verrazano asked 1/10, 2010 at 10:23

16

I have a threading problem in Swift. I have an array with some objects in it. Over a delegate the class gets new objects about every second. After that I have to check if the objects are already in...
Asch asked 28/1, 2015 at 11:26

3

Solved

After looking into my question here, I found that it was caused by a simpler problem. When I write "\n" to a file, I expect to read in "\n" from the file. This is not always the case in Windows. ...
Forster asked 20/11, 2017 at 3:24

3

Solved

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...
Tecumseh asked 23/1, 2013 at 0:33

6

Solved

I am developing an android app in which it is required to provide permission for Read and write external storage. My requirement is to select a picture from gallery and use it in my app. Everything...

3

Solved

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 cre...
Eastwards asked 3/11, 2020 at 1:37

1

I've got a Google Doc with Google Apps Script script running that multiple people contribute to. There is an onEdit trigger that is fired when people edit the sheet. As I understand it, if one pers...
Pengelly asked 26/8, 2020 at 19:54

6

Solved

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. Ev...
Lapides asked 3/9, 2012 at 9:37

1

Solved

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...
Volvox asked 12/5, 2014 at 11:23

16

Solved

Is it possible to read and write Word (2003 and 2007) files in PHP without using a COM object? I know that I can: $file = fopen('c:\file.doc', 'w+'); fwrite($file, $text); fclose(); but Word wil...
Fronniah asked 9/10, 2008 at 18:9

1

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...
Katusha asked 11/6, 2019 at 6:10

2

Solved

I'm trying to figure out if it is possible to open a file from a Progressive Web App with the default system application. The idea is that a PWA would store for offline use some files (e.g. a .doc...
Heliotherapy asked 6/6, 2018 at 9:35

1

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 $...
Snafu asked 23/10, 2018 at 4:2

2

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 fil...
Silvanus asked 16/5, 2015 at 13:18

1

Solved

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 functio...
Avar asked 12/7, 2018 at 3:8

2

I would like to know how to easily read and write values from a Fortran namelist file in Python.
Culbreth asked 6/6, 2013 at 9:37

5

I want to add given blocks to an array, and then run all the blocks contained in the array, when requested. I have code similar to this: class MyArrayBlockClass { private var blocksArray: Array&l...
Crispation asked 28/2, 2015 at 17:12

3

Solved

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...
Woofer asked 23/8, 2015 at 5:16

2

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 cha...
Schenck asked 27/5, 2017 at 1:54

8

Solved

Assuming I have a byte b with the binary value of 11111111 How do I for example read a 3 bit integer value starting at the second bit or write a four bit integer value starting at the fifth bit?
Rheumatoid asked 5/8, 2012 at 11:7

4

I am writing a html based app, and want to store and retrieve data from local file. This app will not be hosted on a web server. Can anyone please help enlighten the topic on how can this be done?...
Hydrophilic asked 19/8, 2012 at 2:53

1

Solved

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 ...
Pentagram asked 23/9, 2015 at 9:30

4

Solved

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"...
Tannie asked 18/6, 2012 at 7:37

4

Solved

Is it possible to read and write Word (2003 and 2007) files in Python without using a COM object? I know that I can: f = open('c:\file.doc', "w") f.write(text) f.close() but Word will read it as...
Coatee asked 9/10, 2008 at 18:6

1

Solved

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.
Mechanism asked 18/3, 2015 at 21:53

© 2022 - 2024 — McMap. All rights reserved.