ReadFile() is a Windows API function to read data from the specified file or input/output (I/O) device. Reads occur at the position specified by the file pointer if supported by the device.
Questions tagged [readfile]
2383 questions
0
votes
1 answer
streamreader not getting proper count of lines
It counts 23 but there are 30 lines that are "Placeholder:Placeholder"............................................................................
using (StreamReader Reader = new StreamReader(File.Open(AccountsFile, FileMode.Open,…

YoureAllFat
- 5
- 2
0
votes
0 answers
how to append list of files based on the matching words
i have a python class that allow the user to choose a path in order to display the files, then the user enter a searched word in order to match it with all the listed files.
once the user click on the search button i need the system to
read the…

Pyt Leb
- 99
- 2
- 10
0
votes
0 answers
Reading data from file: sliding window
The problem statement is: There is huge file having comma separated bytes.
The file size is big enough that it cannot be stored in-memory. I want to read this file in small chunks of sliding window. I figured out how I can read file in chunks, but…

dev
- 3
- 2
0
votes
2 answers
Reading a CSV file and producing a sum with all the integers in a given row at the end of the row
I'm currently working with CSV files and i've hit a wall with my code. The goal i'm trying to reach is to be capable of writing a CSV file with 20 rows and 10 columns, 1 contains random names, 8 contain random integers, and final one with a random…

Angel Torres
- 67
- 8
0
votes
2 answers
what is the error in my python code in order to search for matching word in a file
i have a python class that allow the user to select list of files then read the files and search for requested word.
the problem is i am able to select files and read but i am not able to search for word.
i will display the functions :
preview the…

Pyt Leb
- 99
- 2
- 10
0
votes
1 answer
ReadFileEx not working on drive handle, claiming to be successful
My code is designed to dump the first 512 bytes of raw data in a drive. CreateFileW works great in opening the handle, I've tested it with getting the drive geometry, so I know that it's not the problem. ReadFileEx then claims it's working, with…

Nexus Designs
- 110
- 1
- 8
0
votes
1 answer
how to insert values from csv into sqlite3 using python
i have a python code that read from csv file using pandas and then create a file sqlite3 called rduDB.db.
date temperaturemin temperaturemax
0 2007-01-13 48.0 69.1
1 2007-01-19 34.0 …

Pyt Leb
- 99
- 2
- 10
0
votes
1 answer
How to read any format of file to string for further compression with Huffman algorithm
How to read any format of file(doc, pdf, jpeg)? My version works only with txt so i am not able to properly decompress file.
My function for read from input file:
std::string getDataFromFileToString(std::string &fName)
{
std::string…

John Born
- 39
- 6
0
votes
1 answer
c# File.ReadLines doesnt work right
I have a txt file and readline is not working right for my file.
My lines in my code.
And this is my text in my file.Lines are like this, but my code doesnt understand lines like this.
X02233 52330 DISCHY 8 BLUZ
std STD 0 0 0…

Alican Kablan
- 1
- 5
0
votes
2 answers
readfile vs. include
Consider the following:
I have a large project which consists of a parent site, alongside multiple 'child' sites, to which they all share identical 'core / base' content.. (images, 'includes', stylesheets, etc.)
My intent is to have these recurring…

Michel Joanisse
- 450
- 1
- 9
- 26
0
votes
1 answer
get the values for each line in the file in c
I need to read this main.txt file:
STUDENT ID 126345
TEACHER MATH CLASS 122
And i need to get each values from this file . If this main.txt file was like this:
STUDENT ID 126345
TEACHER ID 3654432
I could do it like this:
#include
int…

okydoky
- 31
- 1
- 7
0
votes
2 answers
Skip first lines of CSV in Python - does not work? Why?
My csv data looks like as follows:
$('table').each(function(index) {
$(this).find('tr').each(function() {
$(this).find('td:first-child').each(function(i) {
var a;
var b;
var c;
…

Ferit
- 558
- 1
- 5
- 19
0
votes
0 answers
NASM assembly reading file - detecting EOF
I have trouble exiting loop while reading a file byte after byte. In loop I compare read byte with EOF ( = -1). Previously I was putting read byte into register so I could see it in dbg and it turns out that program hangs on last byte from the file.…
user4833046
0
votes
0 answers
node.js readSync and stream return different results
I want to read file with stream to update UI progress bar. But after I start experimenting with fs.createReadStream I noticed that I receive different results. For example:
var d = fs.readFileSync('file.bin',…

Arti
- 7,356
- 12
- 57
- 122
0
votes
1 answer
Program execution interrupted when certain String is read from File
I have a small problem with my code and hope you can help me.
This program below reads names that are written in a txt-file and stores them in a linked list and prints them back out on the command line.
The list consists of the following…

serene
- 11