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.
826 questions
1
vote
1
answer
100
views
A Java program for compressing/decompressing files via Huffman algorithms (version 1.1.1)
Intro
(See the version 1.0.0.)
(See the GitHub repository.)
This time I have got rid of some generic classes and adapted the entire code base to deal with byte ...
4
votes
3
answers
84
views
Optimizing DataFrame iteration when generating large hierarchical text files
I have a custom object which stores dataframes in memory given a certain hierarchy, and I want to store this data in a file while maintaining the hierarchy. This hierarchy involved parents, children, ...
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 ...
5
votes
2
answers
152
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 ...
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 ...
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):
...
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 ...
4
votes
2
answers
250
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 ...
6
votes
1
answer
851
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 ...
4
votes
2
answers
154
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 ...
3
votes
3
answers
165
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:
...
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 ...
3
votes
1
answer
194
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 ...
5
votes
2
answers
443
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 ...
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 ...