Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
75 views

I have a requirement that a single ReadFile call on a specific NTFS file blocks until I explicitly permit it to proceed from another thread. I attempted to accomplish this by obtaining an exclusive ...
diplomat's user avatar
2 votes
1 answer
129 views

Question I'm trying to understand the following symptoms: I have a C++ program that uses Windows ReadFile to read (and discard) all of stdin. The ReadFile call specifies a read size of 0x10000 (...
Scott McPeak's user avatar
  • 13.8k
1 vote
0 answers
61 views

UPDATE – Solution – <?php include 'loggercode.php'; $filename = "pages-26-27.pdf"; header("Content-type: application/pdf"); header("Content-Length: "...
Andante88's user avatar
2 votes
1 answer
121 views

The contents of a text file named existingfile.txt is as follows The First Order Derivative of X2 is 2x. The derivative of sin is cos. Math is the best The code below is from a file named main.cpp ...
timmy george's user avatar
0 votes
2 answers
90 views

I've been using vb6 to print a block of data from the middle of a file. ... Dim Chunk As String * 100 Open files(i) For Binary As #ff1 MyLen = LOF(ff1) Get #ff1, MyLen / 2, Chunk For i = 1 To 100 f = ...
Kirk's user avatar
  • 99
-1 votes
1 answer
107 views

I am trying to read a game data file from an old windows RPG in order to create an editor program. The code reads each character as its ASCII value. The files are in 256 character ASCII, but when I ...
user avatar
0 votes
0 answers
45 views

My script reads various file types (TXT, CSV, JSON, DOCX, PDF, XLSX, HTML) and searches for specific words. It works fine for most file types, but for HTML files, it returns fewer results than ...
Lior Dahan's user avatar
3 votes
0 answers
90 views

I'm building a desktop app using ElectronJS, which reads content of pre-existing XLSX files. I first created the app as a CommonJS module. Here's the minimal reproducible example code: const path = ...
Aristocrates's user avatar
-1 votes
1 answer
94 views

Please help with the code. Reading a file from flash memory. The file contains only 4 numbers in two lines: 254 128 and 0 127. The program must also read these 4 numbers: 254 128 0 127 This is what ...
Igor's user avatar
  • 1
0 votes
0 answers
36 views

I have encountered an issue with Windows API I/O output that has been troubling me for several days. I want to perform a file read operation using the CreateFile function in the Windows API, reading ...
玩家蒸汽's user avatar
0 votes
0 answers
77 views

I'm having trouble creating a secure download on my site. It's not uploaded yet, and it's currently being tested on the XAMPP server on my PC. It should be noted that my operating system is Windows 11....
Foad Khalaj Foad Programmer's user avatar
0 votes
1 answer
142 views

I can read a file with Unicode path like this: #include "iostream" #include "windows.h" using namespace std; ///--- variables ---/// //-- DWORD --// DWORD dwBytesToRead = 0; //-- ...
Çağatay KAYA's user avatar
-3 votes
1 answer
116 views

I am new to C#. I want to be able to scan a user input line by line in C# (like you can in Java with a scanner or in Go with bufio). My code needs to handle user input like this: 3 Hans Grethe Otto ...
Theresia Ravn's user avatar
4 votes
0 answers
98 views

I´m unsuccessfuly trying to read a txt file separated with pipes "|" using readr::read_delim() function, it especificly fails reading the row number 77410 and add a missing value (NA) in a ...
Eduardo López's user avatar
0 votes
0 answers
67 views

How can I read a file with nodejs, even json, from url? My file is on a server. I tried with ftp download but it is very inefficient. Now is working on this, but is very slow for download and running.....
Alexie01's user avatar
  • 141
0 votes
0 answers
28 views

I am working on a project that simulates generic sports matches. I am trying to add functionality where a user can upload/save teams to the project. To organize the scripts, I have separated various ...
Bob Gabbitas's user avatar
0 votes
2 answers
318 views

I have been trying to couple my Python script with CMG reservoir simulation software for the oil and gas industry. The software generates an output file for each timestep (e.g. 0.1 day, 0.2 days etc). ...
user621895's user avatar
0 votes
0 answers
40 views

As the title describes, I am not sure why, but the same code was working fine before I tested on reading/writing a file outside of the directory. I was testing on the desktop folder and got it to read ...
David Young's user avatar
1 vote
0 answers
99 views

i am trying to make a test with Jest in typescript, and i'm running in an error that i can't seem to find the fix to. I have an express.js backend that has a route '/upload'. The route takes a file ...
gabirel2's user avatar
2 votes
0 answers
84 views

how to read a doc file in Python? some libraries showing errors while reading the file. sometimes we need to convert the doc file into docx at first and then use some library that supports this ...
Anik Chakraborty's user avatar
0 votes
1 answer
729 views

I need SQL query or function/procedure, that can read all file names and content from physical location and insert into the SQL table. There are two things here- All the files are text file (.txt) ...
sunil's user avatar
  • 163
1 vote
2 answers
197 views

I have implemented a small program, that has one function to open and read a text file with instructions for drawing, whereas the second one is targeted at drawing. The second one was already utilised,...
Lucky's user avatar
  • 23
1 vote
1 answer
142 views

Similar to VBScript OpenTextFile Invalid Proedure call or argument I'm trying to access a file which seemingly exists, but gives me an error 5. Here is my code: `Strfilepath="...\query.txt" ...
Kingsley Obeng's user avatar
0 votes
1 answer
95 views

I am having an API endpoint in my NodeJS application. I am posting a filename to it to find the specific file in a folder. I am doing it like this: const fileDirectory = 'C:/Sites/private-uploads'; ...
Gery's user avatar
  • 43
1 vote
1 answer
2k views

I have a file with a bunch of primes. For this purpose we can say that the contents of this file called "primes" are as follows: 2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,...
Hackerman's user avatar
  • 141
0 votes
1 answer
127 views

I am trying to read a csv file (encrypted) from azure blob storage and decrypt it using gnupg and read it in python. I am able to access the blob file but when I pass it to dcrypt function it throws ...
Nitin Vangala's user avatar
0 votes
2 answers
168 views

I'm writing an application to obtain Geolocation on C. To get the coordinates, I decided to use Popen with PowerShell and this is the code I wrote: BOOL getLatitude(wchar_t* latitudeBuffer) { ...
MiZentUi's user avatar
0 votes
1 answer
164 views

I read content of text files from assets. However, if I read second file then I get wrong result. It is mixed with previous file. Here is first file, this is correctly written to buffer by AAsset_read:...
user1063364's user avatar
1 vote
1 answer
318 views

I want to write a program that executes a cmd or powershell command. To achive this I create a process with CreateProcessA and use pipes for Input / Output. My code works fine but after the command (...
Finn's user avatar
  • 105
2 votes
0 answers
824 views

I'm using nextjs 14 and making a function to create events in Google Calendar. I need to authenticate. The problem occurs when I try to read the contents of the credentials.json file. This works in ...
Oleksandr's user avatar
4 votes
4 answers
232 views

I wrote a code to read a file. Read the default file or another file and store the content file in a string. I don't know where I went wrong! When I run it, sometimes it's ok, but sometimes I get a ...
Emad Deve's user avatar
0 votes
0 answers
309 views

I have a file.SAS7bDAT file in AWS S3 bucket. I need to read this file into a dataframe directly using boto3 client for further processing. How can I read it in a dataframe using boto3 S3 client? ...
PythonDeveloper's user avatar
1 vote
1 answer
433 views

Read this: https://github.com/karatelabs/karate#reading-files It says how to set pom.xml for restricting classpath to not read /resources. Can i know what should be the pom.xml for classpath to read ...
Nagulan S's user avatar
  • 770
0 votes
2 answers
1k views

I'm trying to read a file from an SMB server using .net7 api and SMBLibrary, but the read fail with null data and the status :"STATUS_END_OF_FILE". I want to get the stream data to upload it ...
NHARI Med's user avatar
  • 171
0 votes
0 answers
33 views

I'm trying to read a partition block by block using vc++. The hard drive has a block size of 512 bytes and the partition table tells me that the partition has a start offset of 128 and an end offset ...
uwe's user avatar
  • 11
0 votes
1 answer
28 views

My file contains "abcdefg". Why when I use this part of code, in console, it prints letter 'g'? #include <iostream> #include <fstream> #include <cstring> using namespace ...
Omar's user avatar
  • 3
-1 votes
1 answer
86 views

i have a problem when i try to open a file .xlxs in a public disk P: with VBA Code. The file show me a message "please try again later - ERROR 1004". Many user use this file and this error ...
Lautaro Tita's user avatar
-1 votes
2 answers
99 views

I have this PHP script (process.php): <?php // Include necessary libraries for database, PDF generation, and ZIP compression. require_once('db_connection.php'); require_once('tcpdf/tcpdf.php'); ...
Willem-Jan Meijer's user avatar
0 votes
1 answer
31 views

I'm serving a php app on Apache2. In a function I simply want to display media, using php script instead of hosting the medias in a public folder on the server. This is because I want to be able to ...
user1427930's user avatar
-1 votes
1 answer
998 views

Im currently trying to build and app to manage budgets or expenses, im new to python and everything really, so im getting help from a friend, and im not quite familiarized with all the processes ...
Joaquin Andrés Bächler Díaz's user avatar
-4 votes
1 answer
68 views

// fulfill one promise 5000ms console.time('test'); (async function () { await new Promise((resolve) => setTimeout(resolve, 5000)); console.log('slept') })() .then(() => { console....
Alexander Cheprasov's user avatar
0 votes
0 answers
41 views

I'm reading a tab delimited csv file with fscanf. The file was obtained from an SQL database where some columns were NULL. Accordingly, there are places where there is nothing in csv between tabs, and ...
Александр Попов's user avatar
0 votes
0 answers
39 views

I am testing a small bit of code to download a file but nothing downloads. I have looked at countless examples (I know this has been asked many times) and from reading these examples this should work. ...
RGriffiths's user avatar
  • 6,020
0 votes
3 answers
98 views

I am a C# programmer and need to go for python now. It is my 2nd day so far. I need to write a file, read it and then delete it. In C# that's easy peasy. string strPath = @"C:\temp\test.txt";...
Patrick's user avatar
  • 2,623
0 votes
3 answers
4k views

I want a cleaner UI than what <input type="file" ...> gives me. I can use window.showOpenFilePicker() to get the user gesture security context and get a "fileSystemHandle" ...
Sanford A Staab's user avatar
0 votes
2 answers
61 views

I'm having this problem, I think it's basically just algorithm but I can't figure it out though I try multiple ways. I have a file name "employees.txt". Each line in this file is a record, ...
Hải Đăng's user avatar
-3 votes
1 answer
97 views

I'm trying to read the information from a .txt file but something very strange is happening. Here's the code: ifstream fichier(dir); fichier.open(dir); if (fichier.is_open()) cout << &...
Diego's user avatar
  • 175
1 vote
1 answer
980 views

I have been trying to call adb from a C++ app and read its output, without success. adb is present on PATH. The ReadFile call never reads anything, even if I wait. GetLastError() returns 109 ...
Cosmin Polifronie's user avatar
-1 votes
3 answers
81 views

I'm looking for a pattern that match with "changes": [ "5.12.0", "5.14.0" ], ... "changes": [ "1", "5.0.0&...
Shoooryuken's user avatar
2 votes
2 answers
78 views

I have whatever HTML file, this html file has many tags that have children, and those children have more children and the deep is unknown. An example file is: <!DOCTYPE html> <html lang="...
user3084383's user avatar

1
2 3 4 5
48