tagged [text-files]

How to read a text file directly from Internet using Java?

How to read a text file directly from Internet using Java? I am trying to read some words from an online text file. I tried doing something like this but it didn't work, I am getting as the output and...

Tools to search for strings inside files without indexing

Tools to search for strings inside files without indexing I have to change some connection strings in an incredibly old legacy application, and the programmers who made it thought it would be a great ...

18 May at 08:48

In C, how should I read a text file and print all strings

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 and print the content to the console (assume the file ...

11 Aug at 23:7

Read a local text file using Javascript

Read a local text file using Javascript I have read some of the previous questions on this topic but I really need to be 100% sure! Is it possible to read from a .txt file on my local system and prese...

18 Oct at 14:32

Create a .txt file if doesn't exist, and if it does append a new line

Create a .txt file if doesn't exist, and if it does append a new line I would like to create a .txt file and write to it, and if the file already exists I just want to append some more lines: ``` stri...

31 Oct at 13:40

PHP to search within txt file and echo the whole line

PHP to search within txt file and echo the whole line Using php, I'm trying to create a script which will search within a text file and grab that entire line and echo it. I have a text file (.txt) tit...

24 May at 18:53

How to add duplicate keys into the Dictionary

How to add duplicate keys into the Dictionary I have some lines from text files that i want to add into the Dictionary.I am using Dictionary for the first time.While adding up starting lines it was Ok...

25 Sep at 12:45

How to add new line into txt file

How to add new line into txt file I'd like to add new line with text to my date.txt file, but instead of adding it into existing date.txt, app is creating new date.txt file.. I'd like to open txt file...

10 Nov at 11:0

Export a C# DataSet to a text file

Export a C# DataSet to a text file There are a lot of examples online of how to fill a DataSet from a text file but I want to do the reverse. The only thing I've been able to find is [this](http://csh...

24 Aug at 10:55

C# Read Text File Containing Data Delimited By Tabs

C# Read Text File Containing Data Delimited By Tabs I have some code: ``` public static void ReadTextFile() { string line; // Read the file and display it line by line. using (StreamRead...

22 Jun at 16:36

Create Text File Without BOM

Create Text File Without BOM I tried [this aproach](https://stackoverflow.com/questions/2437666/write-text-files-without-byte-order-mark-bom) without any success the code I'm using: ``` // File name S...

How to efficiently write a large text file in C#?

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](http://www.google.com/support/merchants/bin/answer.py?answer=1600...

4 Aug at 15:39

Reading text files line by line, with exact offset/position reporting

Reading text files line by line, with exact offset/position reporting My simple requirement: Reading a huge (> a million) line test file (For this example assume it's a CSV of some sorts) and keeping ...

7 Apr at 16:25

Manipulating lines of data

Manipulating lines of data I have millions of lines generated from data updated every second which look like this: The column on the left represents time (hhmmss format), and the column on the right i...

20 Dec at 18:59

Java - How Can I Write My ArrayList to a file, and Read (load) that file to the original ArrayList?

Java - How Can I Write My ArrayList to a file, and Read (load) that file to the original ArrayList? I am writing a program in Java which displays a range of afterschool clubs (E.G. Football, Hockey - ...

How To Overwrite A File If It Already Exists?

How To Overwrite A File If It Already Exists? I'm making a music player. It has 2 forms; one is the main area where you play music. The second form has a CheckedListBox where you select the mp3s you w...