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 ...
25
votes
4
answers
3k
views
Perl CGI script to serve a PDF file
In a different post I showed the following Perl CGI script. Someone in the comments said that
"You're using a lot of very unperlish syntax, and I'd like to give you some feedback".
So, ...
4
votes
5
answers
5k
views
touch command in C
I wrote a program in C that simulates the touch command from linux.
I would like to ask you to criticize my implementation, to find bugs in particular
...
6
votes
1
answer
2k
views
Sorting file lines in natural order
I'm new to Java and have been through some tutorials and I'm in the next step of checking how I'm doing now. Is there a better way of doing this?
...
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 ...
5
votes
1
answer
380
views
Getting color information from an image
I am working on a site that themes itself based on images / logos. I have made a utility class that gets the colors from an image, shown below. I am fairly new to OOP with PHP, and I'm looking for ...
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 ...
5
votes
2
answers
482
views
Sort files into folders by filename suffix
This is my first ever real 100% self-made Perl script. I'd like to know how I can improve it.
...
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):
...
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
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 ...
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 ...