Top "File" questions

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

Writing data into CSV file in C#

I am trying to write into a csv file row by row using C# language. Here is my function string …

c# file csv
Directory-tree listing in Python

How do I get a list of all files (and directories) in a given directory in Python?

python file directory subdirectory directory-tree
In C, how should I read a text file and print all strings

I have a text file named test.txt I want to write a C program that can read this file …

c file text-files
How to search and replace text in a file?

How do I search and replace text in a file using Python 3? Here is my code: import os import sys …

python python-3.x string file replace
Using curl to upload POST data with files

I would like to use cURL to not only send data parameters in HTTP POST but to also upload files …

shell file curl post file-upload
Save and load MemoryStream to/from a file

I am serializing an structure into a MemoryStream and I want to save and load the serialized structure. So, How …

c# file io stream memorystream
How to test if string exists in file with Bash?

I have a file that contains directory names: my_list.txt : /tmp /var/tmp I'd like to check in Bash …

string bash file
Getting file size in Python?

Is there a built-in function for getting the size of a file object in bytes? I see some people do …

python file size
byte[] to file in Java

With Java: I have a byte[] that represents a file. How do I write this to a file (ie. C:\…

java arrays file io inputstream
Rename a file in C#

How do I rename a file using C#?

c# file rename