Top "File" questions

A block of arbitrary information, or resource for storing information, accessible by the string-based name or path.

how to "execute" make file

I tried to use a make file in code::blocks but I am doing it wrong. I have the version …

file makefile execute
How to convert a file into a dictionary?

I have a file comprising two columns, i.e., 1 a 2 b 3 c I wish to read this file to a …

python file dictionary
Reading and writing binary file

I'm trying to write code to read a binary file into a buffer, then write the buffer to another file. …

c++ file binary buffer
How to open a file for both reading and writing?

Is there a way to open a file for both reading and writing? As a workaround, I open the file …

python file file-io
How to read first N lines of a file?

We have a large raw data file that we would like to trim to a specified size. I am experienced …

python file head
Is the MIME type 'image/jpg' the same as 'image/jpeg'?

Pretty simple question but can't seem to find it anywhere online. I'm trying to make a program that depending on …

file mime-types
Android saving file to external storage

I have a little issue with creating a directory and saving a file to it on my android application. I'm …

android file storage external
How to use EOF to run through a text file in C?

I have a text file that has strings on each line. I want to increment a number for each line …

c file eof
Error when creating a new text file with python?

This function doesn't work and raises an error. Do I need to change any arguments or parameters? import sys def …

python file python-3.x file-io
Save byte array to file

I have a byte array (an IEnumerable actually), and I need to save it to a new file containing this …

c# file stream save byte