Problem We have a process that outputs to log files in the format /var/log/xxx/YYYY_MM_DD.log – the file name is chosen […]
Tag: file
Loading tab-separated tweet data into an array
Problem I’m working on this school project and was wondering if there was any way of storing this information better, […]
Serializing object graph to proprietary binary file
Problem I’m creating a class library to read/write .3di files which are binary files describing 3D models for a video […]
Image upload filter for PHP
Problem I am trying to improve my file upload handler filter. Environment Since any client-side validation is easily circumvented, there […]
Arrange lines of a text file
Problem This program orders the lines of a text file alphabetically and prints them out to a new text file. […]
Longest lines of file descending
Problem This is a challenge question from codeeval.com: Write a program which reads a file and prints to stdout the […]
Follow-up 2: Copy File, remove spaces in specific lines
Problem This is an iterative review: The Original Question | Follow up 1 Differences to Follow up 1 This iteration […]
Read an image file into a canvas and display click coordinates
Problem I am a beginner in JavaScript, which I have started studying since Summer last year. My code’s purpose is […]
Secure file upload for PDF only
Problem I am trying to create a secure file upload using PHP 7+ where I only allow PDF files. I […]
Reading files with code value pairs
Problem I have a text file with about a hundred code value pairs [$code, Value]. For example: Sample file $codeA […]