text-files Questions
5
I have a text file in this format :
{
attribute1 attribute2 attribute3.... attributeN
value"A" value"B" value"C".... value"Z"
/* next line of values*/
}
Each word is separated by a tab.
H...
Witchery asked 8/4, 2011 at 4:58
5
Solved
I would like to load each line in a file into HashSet collection. Is there a simple way to do this?
Flunky asked 27/4, 2011 at 12:41
11
I already have read Read and write data from text file
I need to append the data (a string) to the end of my text file.
One obvious way to do it is to read the file from disk and append the strin...
Mehalek asked 6/12, 2014 at 0:56
4
Solved
How do I code the algorithm below in VB.NET?
Procedure logfile()
{
if "C:\textfile.txt"=exist then
open the textfile;
else
create the textfile;
end if
go to the end of the textfile;
write ...
Arliearliene asked 26/8, 2009 at 4:2
17
Solved
I received some text that is encoded, but I don't know what charset was used. Is there a way to determine the encoding of a text file using Python? How can I detect the encoding/codepage of a text ...
Stockbroker asked 12/1, 2009 at 17:30
17
Solved
I received some text that is encoded, but I don't know what charset was used. Is there a way to determine the encoding of a text file using Python? How can I detect the encoding/codepage of a text ...
Pusillanimous asked 12/1, 2009 at 17:30
7
Solved
I'm using Linux mint and using the vi command to create text files, now that I created a text file and saved it. How do I get back into to edit the text file again?
vi helloWorld.txt
Conni asked 29/2, 2016 at 8:46
7
Solved
There may be various way to read plain text file in kotlin.
I want know what are the possible ways and how I can use them.
Grier asked 15/3, 2019 at 12:25
5
Solved
From my iPhone application I'm outputting data from text to a file. When opened with windows notepad, the data is all on one line and where there should be a new line a block character is present (...
Bogusz asked 6/1, 2012 at 8:8
6
Solved
I have a file which is manually added or modified based on the inputs. Since most of the contents are repetitive in that file, only the hex values are changing, I want to make it a tool generated f...
Towland asked 16/7, 2012 at 11:20
12
I am trying to read every line of a text file into an array and have each line in a new element.
My code so far.
<?php
$file = fopen("members.txt", "r");
while (!feof($file))...
Staffer asked 28/5, 2011 at 4:40
4
Solved
How to delete the first line of a file using Batch?
I really need help... I've tried everything but it didn't work. :(
I've tried this :
@echo off
Type test.txt | findstr /I /V /C:"So, lets remov...
Egocentric asked 19/10, 2013 at 10:45
6
I am trying to make a simple software which stores data in a TXT log file.
This is my code
FileStream fs = null;
StreamWriter fw = null;
try
{
fs= new FileStream(Environment.GetFolderPath(Environ...
Sultana asked 16/3, 2013 at 18:16
5
Solved
I am looking for large text files for testing the compression and decompression in all sizes from 1kb to 100mb. Can someone please refer me to download it from some link ?
Muse asked 12/6, 2017 at 6:20
7
Solved
I'm currently using a HttpResponse to download files from my Server. I already have a couple functions being used to download Excel/Word files, but I'm having trouble getting my simple Text file (....
Fyke asked 29/3, 2011 at 23:40
17
Solved
I have a huge text file (~1GB) and sadly the text editor I use won't read such a large file. However, if I can just split it into two or three parts I'll be fine, so, as an exercise I wanted to wri...
Gaseous asked 14/11, 2008 at 23:12
12
Solved
Is there an easy way to programmatically determine the number of lines within a text file?
Ethic asked 23/9, 2008 at 7:25
44
Solved
How do I get a line count of a large file in the most memory- and time-efficient manner?
def file_len(filename):
with open(filename) as f:
for i, _ in enumerate(f):
pass
return i + 1
Outset asked 10/5, 2009 at 10:22
2
Solved
I tried this aproach without any success
the code I'm using:
// File name
String filename = String.Format("{0:ddMMyyHHmm}", dtFileCreated);
String filePath = Path.Combine(Server.MapPath("App_Dat...
Gamone asked 23/3, 2010 at 19:32
30
Solved
I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. "FOO") with another (ex. "BAR"). What is the simplest way to d...
Chaddy asked 12/9, 2008 at 21:48
22
I need to read a large text file of around 5-6 GB line by line using Java.
How can I do this quickly?
Monda asked 3/5, 2011 at 10:53
31
Solved
It seems there are different ways to read and write data of files in Java.
I want to read ASCII data from a file. What are the possible ways and their differences?
Pooh asked 17/1, 2011 at 18:29
2
I am trying to write to a file with Transact-SQL using a stored procedure that I can pass input to. However, every time I run the commands in SQL Server 2012 it displays Command(s) completed succes...
Chainplate asked 17/6, 2016 at 14:28
2
Solved
I sometimes use VScode for plain text documents, however I'm constantly interrupted by suggestions to use particular words:
How can I stop this behavior for txt files? I would still like sug...
Essay asked 25/6, 2020 at 19:28
5
Solved
I have a repository with a lot of autogenerated source files I've marked as "binary" in .gitattributes (they are checked in because not everyone has access to the generator tools). Additionally, th...
Bedbug asked 24/9, 2013 at 4:39
1 Next >
© 2022 - 2025 — McMap. All rights reserved.