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

Read/Write/Move csv file

So I'm writing some html code where someone can browse a file and save it(using some java code) in a different location under a new name. I've attempted a couple of different ways of doing this by browsing a file then reading and writing the file. …
Lcat91
  • 804
  • 3
  • 10
  • 14
-1
votes
4 answers

how and where to efficiently store and retrieve data every second for this situation?

hi experts :) I'm using wpf with sql server problem 1: lots of data gets created and must be saved to db every second, but at the same time multiple parts of the program write to the same tables. Saving to the db every second is not efficient as db…
Mercury
  • 711
  • 1
  • 11
  • 21
-2
votes
1 answer

read and write to file in c - compressing matrix

I'm trying to write a compressed bits matrix to a and the read it back. The writing works great but the reading keeps failing and I dont understand why. typedef unsigned char BYTE; int saveCompressImageToFile(const char *fileName, const int…
-2
votes
5 answers

Store a string as a single line in a text file

I have many big strings with many characters (about 1000-1500 characters) and I want to write the string to a text file using python. However, I need the strings to occupy only a single line in a text file. For example, consider two…
Mayank Khanna
  • 149
  • 3
  • 9
-2
votes
1 answer

How to detect a control in a windows form and edit it c#

My form So, i have this Form with a TableLayoutPanel witch contains text boxes. I need the code to check if there is a textbox on my form and it is empty - then write text in it else {keep looking for an existing, empty text box} The order…
-2
votes
1 answer

Why does reading from /sys/bus/... take so much time?

I'm working on a project which requires sensor data from a temperature sensor. While accessing the file using open() and then read(), we found that it took too long. We have isolated problem to read() taking the most time (approximately 1 second).…
-2
votes
1 answer

Error code when trying to write to a text file

Basically I started Python a couple of days ago and wanted to create a program that could read and write files. Problem is I get this error: io.UnsupportedOperation: not writable choice = input("Open / Create file: ") if choice == 'Create' or choice…
tehc
  • 1
-2
votes
3 answers

Can i extract some data from HTML file i have downloaded it has some JSON in it

This is the link to the HTML file i have downloaded https://drive.google.com/open?id=1z7A9U0qZSVtLMQDbsVtPyZVz9Zm73-ZQ from this file at the end you can see some data like this
RAJA SAHAB
  • 3
  • 1
  • 7
-2
votes
1 answer

Read file from folder which is being written python

I have a folder which is being written continuously with files (from a Raspberry Pi). I want to run a Python code which will read files (and process them) from the same folder. I start the Python code after say 5 files have been written into the…
Shrini
  • 25
  • 7
-2
votes
1 answer

python function to read all descendant lines of a given line which are not empty

the function will take two parameters (line, txtfile) and should return all the descendant lines after the line parameter from txtfile which are not empty for example the text file contains: line1 line2 line3 line4 line5 the function should return…
m_margegaj
  • 23
  • 1
  • 6
-2
votes
1 answer

How do I access files on a hadoop file system present on a different server from my local machine?

I have a local machine (local_user@local_machine). And a hadoop file system is present on a different server (some_user@another_server). One of the users in the hadoop server is named target_user. How do I access files present in target_user from…
Kristada673
  • 3,512
  • 6
  • 39
  • 93
-2
votes
1 answer

Reading an input file line by line using string stream

I have a data file "records.txt" that has the following form: 2 100 119 107 89 125 112 121 99 124 126 123 103 128 77 85 86 115 66 117 106 75 74 76 96 93 73 109 127 110 67 65 80 1 8 5 23 19 2 36 13 16 24 59 15 22 48 49 57 46 47 27 51 6 30 7 31 41 17…
Leigh K
  • 561
  • 6
  • 20
-2
votes
1 answer

Assigning file lines to lists in python

I have a "samples" file containing numbers in two lines(separated by a single space): 12 24 36 45 56 67 I would like to add these two lines in python to two lists which list1 then becomes ['12','24','36'] and the list2 becomes ['45','56','67']. I…
coder
  • 13
  • 6
-2
votes
2 answers

Java Code failing to write to text file,

im trying to run a simulator and there are several problems, primarily.... -the code isn't printing out the values at the end of the program - the code does not actually create the file -I'm pretty tired so forgive any foolish mistakes I made or…
Anonymous
  • 11
  • 7
-2
votes
1 answer

How to read a config file which is located at project path in Android?

In my application there are some configuration data, such as ipaddress, portno, title and etc. I want to keep these data in phone and out of the application in config.And I will read from and write to this file.How can I do that?If not what can you…
MUMBUÇOĞLU
  • 251
  • 1
  • 8
  • 24