txt is the conventional filename extension of text files.
Questions tagged [txt]
1467 questions
-2
votes
2 answers
How can I pass values from a text file to a DataGrid? C # WPF
I am writing a simple program in C # using wpf, a semblance of a base, I understand that it would be easier to solve this problem using subd and entity framework, but the point is that you need to solve this way
So, I have a text file from which I…

roxyashechka
- 25
- 6
-2
votes
1 answer
How to increment the value of a variable while writing to a txt file C #
I have the following program:
Database (if you can call it that on text files)
When writing to a text file, I need to increase the record id by one
How can I not understand / find with the help of which method it is possible to implement a loop in…

roxyashechka
- 25
- 6
-2
votes
2 answers
Can't load txt filein python
I don't know why but the code i'm going to show you always returns me an empty list.
Can you please tell me why?
def load_map(path):
f = open(path + '.txt', 'r')
data = f.read()
data = data.split('\n')
f.close()
game_map = []
for row in game_map:
…

jason islive
- 1
- 2
-2
votes
1 answer
Separate every ascii character when saving it into a file
So I want to save ascii characters into a txt file or anything alike
it's just a compression method that I want to do to save space so there are no separators for each character
but the thing is it turns into something else with a different encoding…

David
- 1
-2
votes
1 answer
Getting the data from a .txt file into a .js file
We need to extract information from a .txt file, into a .js file.
We've tried using 'Fetch API' but without luck, is there any other way to go about this.
We are using a Node.js Server to see what's going on
This is the contents of the .txt…

Noddy
- 3
- 1
-2
votes
1 answer
python creating columns and rows from a txt file without recognizable rows and columns
Link to txt file example Additional File Link
I want to be able to use python to read a txt file and select the column and row information. The txt in the file is in one single column with the data for the column further down the file like the…

Nick Bowman
- 3
- 2
-2
votes
1 answer
Collecting every txt file from computer in python and printing it
I am trying to collect every txt file from my computer and write it into the terminal when I run the script. I do not know how to do it. Is there a way to read every txt file in the computer then print the contents? (not a certain folder or…

ThatSpy
- 1
- 1
-2
votes
2 answers
How to remove invalid ASCII code in lengthy document..specifics please
To start with, not familiar with code at all. I was asked to convert a Word doc to txt, then was told it couldn't be more than 80 characters across. Did that. Now the system has given me over 1000 different versions of this error code "Line Number:…
-2
votes
3 answers
How to take a specific line as input in python for a brute-forcer tool
I have created a brute-forcer tool using smtplib module for top mail services but I am struck with a problem. The problem is how can I take a text file as input.
I want that the tool should take the password from 1st line of wordlist and try it, and…

Shriyans Sudhi
- 7
- 3
-2
votes
1 answer
Creating and editing .text file from javascript
I am making a web site that makes a record of the person who visit it
I have created a html form page that requests the name from the user
But I am unable to figure out how to keep record of it,maybe something like using making a text file and…

Raj jaiswal
- 11
- 1
- 6
-2
votes
2 answers
Find Integers and float numbers in txt file
I have a problem with a simple code nd don't know how to do it;
I have 3 txt files.
First txt file looks like this:
1 2 3 4 5 4.5 4,6 6.8 8,9
1 3 4 5 8 9,2 6,3 6,7 8.9
I would like to read numbers from this txt file and save integers to one txt…

MarekOS
- 33
- 4
-2
votes
3 answers
Convert .txt file to .csv with specific columns PYTHON
I have some text file that I want to load into my python code, but the format of the txt file is not suitable.
Here is what it contains:
SEQ MSSSSWLLLSLVAVTAAQSTIEEQAKTFLDKFNHEAEDLFYQSSLASWNY
SS3 CCCHHHHHHHHHHHHCCCCCCHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
…

Rayanaay
- 85
- 1
- 9
-2
votes
1 answer
How to write a text starting from a fixed position along a line in txt file in python?
While writing a txt file using python, say, I have to include "]" at the end of every sentence. I don't know the length of each sentence. But, I have to ensure that "]" is the 50th character in the line. (The length of sentence will be lesser than…

apn
- 3
- 2
-2
votes
1 answer
How to upload file using mechanize python?
I need to upload a file(txt) in a form like this:
the structure of the add button is as follows:
after upload I have to send the file with the send button:
the structure of the send button is as follows:
I searched and found only examples like…
-2
votes
1 answer
How to slice parts of a text file into a new one
I am analyzing a text file filled with monologues and I would like to create a separate text file composed of monologues from a single character.
Here's an example:
PERSON A:
Hi
PERSON B:
Hello
My goal is to slice all monologues from Person A into a…

xlvs
- 1
- 3