Top "Text-files" questions

Open in Notepad, WordPad, or many other programs designated as text editors.

How do I save a String to a text file using Java?

In Java, I have text from a text field in a String variable called "text". How can I save the …

java file file-io text-files
How to append text to an existing file in Java?

I need to append text repeatedly to an existing file in Java. How do I do that?

java file-io io text-files
How can you find and replace text in a file using the Windows command-line environment?

I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text …

windows command-line scripting batch-file text-files
How to get line count of a large file cheaply in Python?

I need to get a line count of a large file (hundreds of thousands of lines) in python. What is …

python text-files line-count
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 do I read a text file of about 2 GB?

I have a .txt file whose memory is more than 2 GB. The problem is I cannot open it with Notepad, …

text-files notepad++ openoffice-writer
Java: How to read a text file

I want to read a text file containing space separated values. Values are integers. How can I read it and …

java arraylist file-io text-files
How to create and write to a txt file using VBA

I have a file which is manually added or modified based on the inputs. Since most of the contents are …

vba text-files
Getting all file names from a folder using C#

I wanted to know if it is possible to get all the names of text files in a certain folder. …

c# list text-files directory
What's the fastest way to read a text file line-by-line?

I want to read a text file line by line. I wanted to know if I'm doing it as efficiently …

c# .net performance file-io text-files