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

Run script python in web browser

I have a script python for Reading biometric identity card with a card reader this script use this https://github.com/roeften/pypassport, i want to creat a web app with django and use this script and run it on client machine (on web browser) , each…
Dias
  • 44
  • 4
-1
votes
2 answers

Why is event.target.files[0].name showing error in my code?

I have this JS code (given below) which converts a JSON file to XML file. Everything works perfectly (I get the contents of the file), but now I want to fetch the filename of the uploaded file. function onChange(event) { var reader = new…
Sonal
  • 137
  • 2
  • 13
-1
votes
2 answers

Using io.Pipe to get output from exec.command to make http post

Was reading up on the use of io.Pipe to reduce allocation (no need to assign cmd.Stdout to bytes.Buffer). I couldn't get the following to work and appreciate if greatly on how can i use io.Pipe to get output from exec.command to make http mutliform…
JR Wink
  • 107
  • 7
-1
votes
1 answer

How is br.read() giving out -1 at the end of reading the string or How exactly does the br.read() works?

Here is a sample program as an Example for Buffered reader, I got most of it and understood the fact that the while loop execution stop when (br.read()=-1) but couldn't understand why is that so? import java.io.*; public class…
Sushant
  • 3
  • 2
-1
votes
1 answer

BufferedReader Null Pointer Exception Class Resource

I have a parser for OBJ files and MTL Files however I keep on getting a null pointer exception even though it is there. I know I have my file correct because I double-check where the files are. resources (source file)/res/meshes/{}.obj,.mtl Here is…
-1
votes
1 answer

Is there any way to delete the 100th row (or 'last row'), from a csv file, as a new row gets added?

Is there any way to delete the last row, from a csv file, as a new row gets added ? (without having to create separate / duplicate csv file). My goal is to keep the running csv file from exceeding number of rows and size. Ideally: Without creating…
-1
votes
3 answers

Why doesn't my BufferedReader that reads while readLine!=null work?

I have file called "a.txt" inside of which I have this data: A B C D When I run this code, I get unexpected result: BufferedReader bufferedReader = new BufferedReader (new FileReader ("a.txt")); while (true) { System.out.println ("start"); …
Stefan
  • 969
  • 6
  • 9
-1
votes
3 answers

How can I match a list value to a single cvs file's row?

I need to compare a list of integers values with a single row in a CVS file in order to find which line matches that values. ''' firstScore = 90 secondScore = 80 thirdScore = 75 list = [firstScore, secondScore, thirdScore] ''' and the csv…
jovcode
  • 47
  • 12
-1
votes
2 answers

how to add rows in while reading csv file in python

Here is my csv file: i want to add the same date values in tuples. I want the answer like this: { {'26-03-2020', marks:2923,couse1:2297}, {'27-03-2020', marks:2212,course1:1783} } Is there are any easy solution for this.or can i do it…
M. ahmed
  • 53
  • 2
  • 11
-1
votes
1 answer

Deleting Rows in a .csv File (Python)

Good evening, I'm having a problem with a code I'm writing, and I would love to get advice. I want to do the following: Remove rows in a .csv file that contain a specific value (-3.4028*10^38) Write a new .csv The file I'm working with is large…
gman2020
  • 39
  • 5
-1
votes
1 answer

CSV Parsing in swift

I have a CSV file in swift and i am trying to parse it to make a database with tables and populate the data.Here is the format of my CSV.How to I separate the tables with there corresponding data.There are three tables all together.I tired a CSV…
min
  • 1
  • 1
-1
votes
2 answers

Read the flat file,group and write to file(Add special Characters as '*' in Empty Space)

E2739158012008-10-01O9918107NPF7547379999010012008-10-0100125000000 …
-1
votes
1 answer

How to get Python csv.writer & csv.writerows to write to next lines, instead of writing over previous cells?

I am trying to get Python to write 5 lines of text to a CSV file, but not to keep rewriting from the cell [A1]. At the current moment, the program is able to write to the first cell, filling the variables I need into the text. Though the csv.write…
ajsaule
  • 146
  • 1
  • 7
-1
votes
1 answer

Buffered Reader Output looking unlike the file?

my program should read an entire file, it works, but has some weird characters at the start when I output it to the console: try { String name = null; JFileChooser fc = new JFileChooser(); int approve =…
-1
votes
1 answer

How to skip comma while reading CSV file in python?

I am reading a column of csv file using reader method. One of my column contains string value with comma in it. But reader is reading it as a two different value when I use delimiter as comma. My requirement is, code should read this column value as…
Rohit
  • 27
  • 1
  • 8