Top "Text-files" questions

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

Is there a better way to count the lines in a text file?

Below is what I've been using. While it does work, my program locks up when trying to count a rather …

vb.net visual-studio-2010 text-files streamreader
Delete first line of text file

I need a cmd script that deletes the first line in my text file. The scenario is the following: I …

windows batch-file cmd scripting text-files
Notepad++ can recognize encoding?

I created file with UTF-8 encoded content (using PHP fputcsv). When I open this file in Notepad++ - characters are …

encoding text-files notepad++
Line break not working when writing to text file in PHP

I have the following test script: <?php $myFile = "testFile.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); $…

php fopen text-files fwrite
Python: load words from file into a set

I have a simple text file with several thousands of words, each in its own line, e.g. aardvark hello …

python text-files
Is there an upper limit on .txt file size?

As a Christmas gift I have written a small program in Java to calculate primes. My intention was to leave …

memory text-files primes filesize
send a file to client

I want to write a text file in the server through Php, and have the client to download that file. …

php download client text-files
Java - delete line from text file by overwriting while reading it

I'm trying to delete a line of text from a text file without copying to a temporary file. I am …

java text-files printwriter
Compare contents of two files in Dreamweaver

Is it possible to compare the contents of two files in Dreamweaver?

compare dreamweaver text-files
How to efficiently write a large text file in C#?

I am creating a method in C# which generates a text file for a Google Product Feed. The feed will …

c# text-files io