Questions tagged [readfile]

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.

2383 questions
0
votes
0 answers

write to com port and read answer immediately in c++ windows7

I have a measurment device and want to make a series of measurments and store them to a file. For this I need to read out the com port properly. All I get back with this code is some weird signs. #include #include #include…
0
votes
1 answer

python: how to read and process a 18GB csv file?

I have a 18GB csv file from measurement and want to do some calculation based on it. I tried to do it with pandas but seems like it takes forever just to read this file. Following codes are what I…
Yingqiang Gao
  • 939
  • 4
  • 16
  • 29
0
votes
1 answer

python: how can I read and process a 18GB csv file?

I have a 18GB csv file from measurement and want to do some calculation based on it. I tried to do it with pandas but seems like it takes forever just to read this file. Following codes are what I…
Yingqiang Gao
  • 939
  • 4
  • 16
  • 29
0
votes
3 answers

Convert Array presented as String

I have a text-file with following data: [2, 3, 4] [1, 3, 2] When i read the file with fs.read i got Strings like this: '[2,3,4]' '[1,3,4]' And because of that the length of my matrix mat is wrong. Code: var mat = []; var fs =…
Sully
  • 169
  • 3
  • 13
0
votes
5 answers

Reading a file in python, without skipping the first number

I need to write a program, in Python, that looks at a list of numbers in a separate text file, and does the following: Displays all the numbers from the file, adds the total of all the numbers, tells me how many numbers are in the file. My problem…
Whitekong
  • 21
  • 1
  • 5
0
votes
1 answer

Php File Size header()

$file_name = $_GET['name']; $file_url = $_GET['file-url'] . $file_name; header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename=\"".$file_name."\"");…
user8383072
0
votes
1 answer

Cannot import csv file into R

I'm trying to import the csv files from my working directory. There are 3 such files, but for some reason R insists on recognizing only one of them. I can't determine what the pattern is, and if the recognized file is moved out of the folder then…
Rookatu
  • 1,487
  • 3
  • 21
  • 50
0
votes
1 answer

PrintReader returns unreadable characters

i built a program that reads xml files an when i run it in netbeans it works and characters are readable look to the imageopening in netbeans but when i run it from dist folder its works but when i try to open folder that containing arabic language…
0
votes
0 answers

Direct Disk Access: WinAPI WriteFile seems to fail on partitions larger than 2147483647 (7FFF FFFF) sectors

I wrote a small program in VB .Net to physically sort folder entries on FAT partitions (see http://www.public.bplaced.net). To do this, I use API calls to Kernel32.dll. I open the partition with CreateFileA, use the handle to lock the drive with…
N00b
  • 29
  • 5
0
votes
1 answer

How to read entire file with vfs_read in kernel module?

I have to read an entire file in a buffer inside a kernel module I'm writing. I started following as written here but, I'm not clear how to retrieve the file size, to allocate the memory for the array buffer. I could not find a good documentation of…
user3376554
  • 19
  • 2
  • 5
0
votes
0 answers

PHP readfile() displays the file contents instead of forcing the browser to download the file

This is my first time trying to send a file to the user using php and I have the following setup: if (file_exists($fullPath)) { header('Content-type: text/csv'); //Use Content-Disposition: attachment to specify the filename …
Georgi Angelov
  • 4,338
  • 12
  • 67
  • 96
0
votes
1 answer

Placement of bufferedreader.close()

I am having some trouble in the placement of sections of my code. I am a high school student, and for a project I am making a flashcards app. I am using read/write to store the user's data. I am having trouble on where to close my buffered reader.…
A. Price
  • 23
  • 1
  • 1
  • 5
0
votes
2 answers

Download file via PHP

I'm trying to download a zip file without revealing the URL to the user. The file should only be accessible by authorized users. Currently I'm doing this: // check authentication and request method etc... // ... $file =…
choba
  • 41
  • 4
0
votes
1 answer

Read Items From Text File Into Combo Box, VB, WPF

I am currently developing a WPF application using the Visual Basic language, I am looking to read a list of items from a standard text file (ObjectNames.txt, stored within the same directory as the application) and enter them into a combo box. I…
Ronan
  • 77
  • 1
  • 8
0
votes
3 answers

Issue with Reading two Int values from a file

I have file with the below data A,8,43 B,7,42, C,9,34 I am using the below code to read the data Scanner input = new Scanner(new File("D:\\test.txt")); input.useDelimiter(",|\n"); while(input.hasNext()) { String name = input.next(); int…
1 2 3
99
100