Skip to main content
Advice
0 votes
4 replies
89 views

I've been trying to figure this out for a while, but I can't seem to find a clear answer. Is there a way to replace a file that already exists in a directory? Context I'm building an API that ...
heymasin's user avatar
-2 votes
0 answers
106 views

I am building a music player and I need to load in a music library, so naturally I need to process a large quantity of files quickly. I only need a small portion from the beginning of each music file, ...
Trubiso's user avatar
  • 17
0 votes
0 answers
35 views

Consider a situation where you have a file handle and would like to open a new file handle from it. You might want to do this because you need different access rights, or perhaps you want the two ...
Chris_F's user avatar
  • 5,874
3 votes
2 answers
228 views

for a larger project I've been experimenting with file handling in C. Essentially, what I would like to do is: load a one-dimensional string of numbers from a text file into an array which is a part ...
Levi's user avatar
  • 123
1 vote
1 answer
22 views

I am building an http server in NodeJS and the book I'm following has this suggestion on resource management: In the serveStaticFile() function, after constructing the BodyReader and before returning, ...
Eyy boss's user avatar
  • 115
-2 votes
1 answer
129 views

I sometimes get a huge list of SHA256 hashes that I need the MD5 version of. VirustTotal contains this information but doing 200+ manually is not really feasible. I have a script cobbled together from ...
WaryProgram's user avatar
1 vote
1 answer
83 views

I have a directory in which I have 3 files, 2 being directories and another which is a mimetype. I want to keep the mimetype as the first file in the directory, so I made the mimetype first inside the ...
Ironfort 9's user avatar
0 votes
0 answers
39 views

I have the following code prepared in Node.js: const express = require('express'); const multer = require('multer'); const app = express(); const upload = multer({ dest: "./...
user30266210's user avatar
-1 votes
1 answer
68 views

There is a test.txt file which has 'Hello, world' in it already. I am running the code shown below with open('test.txt','r+') as f: print(f.read(3)) f.write("wow!") f.flush() Final ...
Binary's user avatar
  • 1
0 votes
2 answers
121 views

I'm new to C and trying a program to open a file and write text to it but the text keeps showing up as Chinese characters in the file #include <stdio.h> #include<stdlib.h> // int main() { ...
deon junior's user avatar
0 votes
1 answer
48 views

I'm writing a small Flask program, which involves a user uploading PDF files via an html/javascript form in the frontend, which are processed together in the backend. Testing on Ubuntu and Android (...
Tris Sherliker's user avatar
5 votes
2 answers
161 views

I made a very simple program with a GUI where the user inputs the file name and the program itself calculates the mean of a file containing numbers only. I did this by creating a function that reads ...
mtldev1642's user avatar
0 votes
1 answer
70 views

I’m working on an app in SwiftUI, in which I want to support drop file functionality to handle any files. While I try implement this, I am trying accept any files dropped into a custom drop area and ...
esafwan's user avatar
  • 18.2k
2 votes
2 answers
171 views

I'm working on a Python project where I need to process a very large file (e.g., a multi-gigabyte CSV or log file) in parallel to speed up processing. However, I have three specific requirements that ...
Meeooowwww's user avatar
1 vote
0 answers
27 views

I am working in Laravel and presenting you a simplified version of what I am trying to achieve. Assume a JSON file called site.json containing the following: { usedDiscounts: 10 } Every time a ...
coderboy's user avatar
  • 1,887

15 30 50 per page
1
2 3 4 5
197