Skip to main content

Questions tagged [file]

A block of arbitrary information, or resource for storing information, accessible by the string-based name or path. Files are available to computer programs and are usually based on some kind of persistent storage.

2 votes
1 answer
140 views

ds (directory switcher): a *nix program for tagging directories with (short) tags and switching between them via tags

Repo The complete program: GitHub repository How it works After you have cloned the above repository, change directory inside it and type make in order to compile ...
coderodde's user avatar
  • 31.9k
5 votes
2 answers
144 views

Command-line Tool That Reads a Text File and Calculates Basic Statistics

TLDR: First time dev in Go moving from Java and I need feedback on my simple CLI Tool. I wanted to get competent in Go as a very junior developer, so this is my first basic project in go. I set a goal ...
Magd Aref's user avatar
11 votes
6 answers
1k views

fsize: A Command-Line Tool for Checking File Sizes

I have created a cross-platform CLI tool to quickly retrieve file size and present it to the user in different units of data. The whole program is written in C and for Windows Win32 API is used to ...
Darth-CodeX's user avatar
9 votes
3 answers
1k views

Getting information about a RAR file's content

The first lines of the rarpath module (see here for context, the rest is not used here): ...
viuser's user avatar
  • 629
6 votes
4 answers
1k views

Custom Iterator for Processing Large Files

I frequently work with large files and implemented a custom iterator to process these files efficiently while minimizing memory usage. The iterator reads each line from a file, parses it into a ...
Denis Kisina's user avatar
4 votes
2 answers
241 views

Extracting Album Art from mp3

I've created a C# function to extract album art from an mp3 file which seems to work well. Is there a better solution? This is the function that extracts the album art and returns a Bitmap of the ...
Short Int's user avatar
  • 746
6 votes
1 answer
824 views

C++20 Robust File Interface

I'm working on a homebrew game engine in C++20. I needed a robust, minimal-overhead, and easy way to load files into memory. I ended up with this: a simple, easy file loader. It doesn't have many ...
user avatar
4 votes
2 answers
141 views

Managing file paths in a python Data Science project

When doing Data Science projects, I often have to load data and metadata, and output results, plots, logs, etc. Therefore I have to handle all the file paths from where to load the input and write the ...
Alessandro Cesa's user avatar
3 votes
3 answers
162 views

Get histogram of bytes in any set of files in Java - take III

(This post is the continuation of Get histogram of bytes in any set of files in Java - take II.) This time my code looks like as follows: ...
coderodde's user avatar
  • 31.9k
4 votes
1 answer
172 views

Get histogram of bytes in any set of files in Java - take II

Intro This post is the continuation of Get histogram of bytes in any set of files in Java. This time, I have incorporated all (?) the suggestions provided by Alexander Ivanchenko. The entire ...
coderodde's user avatar
  • 31.9k
3 votes
1 answer
192 views

Get histogram of bytes in any set of files in Java

Intro (This post has a continuation at Get histogram of bytes in any set of files in Java - take II.) This time I decided to rewrite the byte histogram counters in C++ [1][2][3] to Java. Usage is the ...
coderodde's user avatar
  • 31.9k
5 votes
2 answers
440 views

Get histogram of bytes in any set of files in C++20

Intro This post is the continuation of Get histogram of bytes in any set of files in C++14 - take II. This time, I have incorporated almost all suggestions in the answers. Code My newest trial looks ...
coderodde's user avatar
  • 31.9k
4 votes
1 answer
397 views

Get histogram of bytes in any set of files in C++14 - take II

Intro (This post is the continuation of Get histogram of bytes in any set of files in C++14.) This time I have added some ASCII art for visualizing the histogram. Also, if the program is invoked ...
coderodde's user avatar
  • 31.9k
4 votes
3 answers
957 views

Get histogram of bytes in any set of files in C++14

Intro (This post has a continuation Get histogram of bytes in any set of files in C++14 - take II.) For the sake of practice, I wrote this short program. It asks any set of file names and it produces ...
coderodde's user avatar
  • 31.9k
6 votes
1 answer
712 views

AES-256 file encryption in c#

I recently needed to write a portion of code to encrypt file to AES-256 in C# language. Since I did not find ready implementations of it, apart from string encryption, and since I'm very far from ...
Siarhei Kuchuk's user avatar

15 30 50 per page
1
2 3 4 5
55