Top "File-writing" questions

This tag refers to the process of writing text or data to a file.

How to create a CSV file if it does not exist and then only append to it Python

I want to know how to create a file if it does not exist in the directory. I want to …

python csv append file-writing
Writing data to file in Dockerfile

I have a shell script, script.sh, that writes some lines to a file: #!/usr/bin/env bash printf "blah …

bash shell docker dockerfile file-writing
Efficient way of writing to a text file in VB.NET

We have some information that we need to write (about 18 KB) to a .txt file stored on one of our …

vb.net file text io file-writing
How to write at a particular position in text file without erasing original contents?

I've written a code in Python that goes through the file, extracts all numbers, adds them up. I have to …

python python-3.x seek file-writing
Groovy: Appending to large files

How do I append to large files efficiently. I have a process that has to continually append to a file …

groovy file-writing
Writing a "\n" in a text file

I'm trying to write a string \n in a text file. But the result in the text file is a …

java file-io file-writing
Python writelines() and write() huge time difference

I was working on a script which reading a folder of files(each of size ranging from 20 MB to 100 MB), …

python performance file file-writing
How to convert a PDF from base64 string to a file?

I have a PDF as a base64 string and I need to write it to file using Python. I tried …

python pdf base64 file-writing
How to correctly write to a file using Parallel.ForEach?

I have a task which reads a large file line by line, does some logic with it, and returns a …

c# parallel.foreach file-writing
When I write to a text file using sp_OAMethod nothing shows up

I am trying to write to a file with Transact-SQL using a stored procedure that I can pass input to. …

sql-server tsql text-files file-writing