Questions tagged [reader]

Reader specifies a software that can read files of a specific format or a hardware gadget that can read some memory card or similar device.

Reader specifies a software that can read files of a specific format or a hardware gadget that can read some memory card or similar device.

554 questions
2
votes
1 answer

Export each lines of csv in a seperated txt file display key error

So I am trying to export each line of a particular column in my csv file in a txt file; I have more than 100 lines. import csv import csv with open('MF.csv', 'r') as csvfile: reader = csv.DictReader(csvfile, delimiter=';') for row in…
kely789456123
  • 605
  • 1
  • 6
  • 21
2
votes
3 answers

Distinguish between "" and empty value when reading csv file using python

CSV file contains values such as "","ab,abc",,"abc". Note, I am referring to empty value ,, as in unknown value. This is different from "", where a value has not been set yet. I am treating these two values differently. I need a way to read "" and…
Naz
  • 189
  • 2
  • 10
2
votes
1 answer

Deriving monad bind from applicative (<*>) confusion

Working through the Haskell Book and my brain is breaking on the following example. I really don't know what the flip function is doing on line 21 1 class Functor f where 2 fmap :: (a -> b) -> f a -> f b 3 4 class Functor f => Applicative f…
Shane Unger
  • 378
  • 1
  • 7
2
votes
2 answers

Cannot claim the only interface I can see through device.configuration.interfaces

Trying to read USB Barcode Scanner on MacOS 10.14.1 in Google Chrome Version 71.0.3578.98 via WebUSB. Using a barcode scanner:…
Alex Filatov
  • 111
  • 2
  • 5
2
votes
1 answer

How to copy from slice to array with seeking onto slice

I'm writing a library to deal with a binary format. I have a struct with array vars, that I would like to keep for documentation purposes. I need also to seek and tell from the input slice of bytes. Some pseudocode: type foo struct { boo…
Blallo
  • 450
  • 3
  • 11
2
votes
1 answer

BufferedReader do not read the entire text file

I read about someone having troubles with BufferedReader: the reader simply do not read the first lines. I have instead the opposite problem. For example, in a text file with 300 lines, it arrives at 200, read it half of it and then the following…
2
votes
0 answers

Java Reader that reads line with line terminator

java.io.BufferedReader.readLine() returns us a "String containing the contents of the line, not including any line-termination characters". Is there any reader that will give us information about encountered line terminator? Of course, we can just…
PastorPL
  • 968
  • 3
  • 17
  • 36
2
votes
1 answer

How can I get the path of a file from an OpenFileDialog and pass it to a PDFReader? (C#)

OpenFileDialog ofd = new OpenFileDialog(); private void button1_Click(object sender, EventArgs e) { ofd.Filter = "PDF|*.pdf"; if (ofd.ShowDialog() == DialogResult.OK) { richTextBox1.Text = ofd.SafeFileName; } } public…
2
votes
3 answers

the constructor csvreader(reader char) is deprecated error

I want to upload file CSV to MySQL with servlet and I have code like this and I got an error from my code. package ServToDb; import java.io.*; import java.sql.*; import javax.servlet.ServletException; import…
Ken Kaneki
  • 125
  • 5
  • 15
2
votes
1 answer

VB6 Check which keyboard is typing [BARCODE SCANNER]

I have a computer with a USB keyboard and a USB Barcode Scanner that works sending the readed codes as very fast keystrokes. Now my app it's a 100% keylogger but I want to differentiate the usb Keyboard with the Barcode Scanner to send only Barcodes…
freaker
  • 21
  • 7
2
votes
1 answer

Read a row of a file starting at byte offset until new line

I am using os.ReadAt() to read certain rows in a csv/tsv file. However, I don't know how many bytes are in that row, I just need to read the line starting at the byte offset I specify until the newline. buffer = make([]byte, 46) os.ReadAt(buffer,…
Jason Piao
  • 67
  • 1
  • 7
2
votes
1 answer

How to read a whole CSV file as one training example in tensorflow?

My data set consists of hundreds of .csv files with a fixed number of columns and variable numbers of rows. The question is - how to read it into tensorflow? filename_queue = tf.train.string_input_producer(['file1.csv','file2.csv']) features_reader…
Karaszka
  • 306
  • 3
  • 12
2
votes
2 answers

Trying to compare a given ID with one stored on the DB

can you help me with this? I really can't undertand how to do it. What I'm trying to do, is that when I give it an id, compare it with another id stored in the database. public Rubro GetRubroById(int GivenId) { Rubro rubro = new Rubro(); …
2
votes
0 answers

Apache Spark: Read two files (full outer join) as master-slave in java

I have two input files - let's call them master and slave. Based on a common key, I want to join them (retain both left and right for null values on the other side) and in order. So basically, end result is any kind of Java RDD which looks like…
2
votes
1 answer

ACR122U Reader disable beep

I'm using the ACR122U Card reader. Is there any possibility to disable the Beep sound when placing a card on the reader? Thanks in advance