txt is the conventional filename extension of text files.
Questions tagged [txt]
1467 questions
-1
votes
4 answers
Getting rid of white space between name, number and height
I have txt file like this;
name lastname 17 189cm
How do I get it to be like this?
name lastname, 17, 189cm

Iiilfiej Omsbwb
- 13
- 3
-1
votes
2 answers
In python, how can you delete lines in a tabular text format that do NOT contain a specific word?
I'm wondering what would be the best way to delete lines from a tabular text (while keeping the header) so that only specific entries that contain a word are in the tabular format.
Say for example, I have a tabular text file with animals and their…

Ellie
- 13
- 4
-1
votes
1 answer
Need help to convert ECG data from EDF format to TXT format in Python
I can need to convert ECG edf file to text format in PYTHON. Can not do it. Tried a lot. plz help me someone.
by using pyedflib getting this traceback:
:Traceback (most recent call last): File…

Shafiq Islam
- 11
- 2
-1
votes
3 answers
Convert int value in txt file to float
I have txt file like this f1= 255,216,255,224,0,16,74,70,73,70,0,1,1,1,0,0,0,0,0,0,255,219,0 I need to convert these numbers to float and save in f2( f2 contain the converted float values) how can do that?

lena
- 730
- 2
- 11
- 23
-1
votes
1 answer
Ubuntu git backup file
I am learning git, and I am a beginner. I have just finished CodeCademy's Git course (https://www.codecademy.com/learn/learn-git), so I wanted to try something on my computer. I initialized a new git repository. Then I changed the a.txt file, but…

adler
- 61
- 8
-1
votes
1 answer
Excel VBA Importing text file into excel and convert a specific column as text
I am currently working on a task and that is just simply importing a text file into excel via VBA.
The problem is that i would like to write a VBA code which convert the variable "Number" as text format only and no change for the others variables…

kkkakaho
- 1
- 4
-1
votes
1 answer
Reading a list of numbers from a txt file excluding certain numbers and words
I have a .txt file as follows:
C:\Temp\stick\zNsNo-MAGNETRON\MAG-ZnSnO-1-XPS.vms
None
Characteristic Energy eV 1486.7 Acquisition Time s 3
KE_None BE_None CPS_None Background_None
1472.7 14 735 735
1472.8 13.9 708 708
1472.9 13.8 …
-1
votes
1 answer
how to get specific data from a txt file in c++
it's my frist publication and i have a question-
I have a .txt file that I want to separate by the ",".
Example:
example1,example2,example3,example4
I want to get example1 and store in an array and so on for example2 , example3, example4.
string[0]…

FrankAlva69
- 7
- 2
-1
votes
1 answer
How to turn an txt file to a list with dict
I'd like to know if I can turn an txt file in a list, and inside the list, a dict, just like the example
people = [{'name': 'Jhon', 'age':18}, {'name': 'Ian', 'age':20}, {'name': 'Annie', 'age':14}]
EDIT
The txt file looks like this:
Jhon, 18
Ian,…

Berando
- 3
- 3
-1
votes
1 answer
Why I can't save the data into my text file?
What I'm trying to do here is to create a form and the data that is inserted into the form will be saved into my employees.php file. I can't seem to find the solution to solve this problem. Can I know what can I do to achieve this? Why do I get the…

Shawn
- 17
- 3
-1
votes
1 answer
"IndexError: list index out of range" when opening and printing a txt file
I'm taking a programming fundamentals class at uni. For an assignment, I have to open a txt file in Python and print the elements from it in a sort of table. The txt file is a list of customer names along with their IDs and some other info. The file…

zedkpea
- 15
- 3
-1
votes
1 answer
Dataweave cannot transform csv to text / plain
i want to convert this csv input payload to text/plain but I got error.
Input payload…

Lukica93
- 1
- 1
-1
votes
2 answers
What is the most efficient way to read integer 2D array with unknown size from .txt file?
In read.txt file I have:
//start of read.txt
The first matrix is:
1, 2, 3, 4;
5, 6, 7, 8;
9, 8, 1, 2;\
//end of read.txt
Notice spaces, commas, and semicolons
The matrix can be different! (thats why I wrote matrix with unknown size)
My very very…

raksa
- 21
- 6
-1
votes
1 answer
How can I make this code create multiple .txt files rather than just the one
So, as is the code works fine, however it only create one txt file, I would like it to create a new file each time it is run and Ideally create a folder within Unity to store all these rather than just in the assets folder.
using…

Ben
- 23
- 7
-1
votes
1 answer
Error handling of operation calculations with C#
I want to create a console calculator in C#. The data is read from a file called expressions.txt.
The columns of the file consist of two numbers and an operation.
I want to calculate using only the operation symbols in the file, with numbers of my…

Jackie Frei
- 9
- 3