txt is the conventional filename extension of text files.
Questions tagged [txt]
1467 questions
1
vote
3 answers
How to ignore a specific part of txt file in C
My question is if would be possible to ignore a specific part of a txt file later stored in a struct using fscanf().
For the purpose of the example let me say I have a txt file made out of this text:
Title: C Programming Language
Author: Dennis…

panini
- 13
- 8
1
vote
2 answers
Input Txt file lines to array using vba
I have a txt file and I need to input it into a string array, where each line is one item in the array.
I've done a good deal with vba before but never editing files other than Word and Excel, so this is new to me.
The below is part of my sub…

Spencer Barnes
- 2,809
- 1
- 7
- 26
1
vote
3 answers
How to read a list of list in r
I have a txt file like this:
[["seller_id","product_id","buyer_id","sale_date","quantity","price"],[7,11,49,"2019-01-21",5,3330],[13,32,6,"2019-02-10",9,1089],[50,47,4,"2019-01-06",1,1343],[1,22,2,"2019-03-03",9,7677]]
I would like to read it by R…

Robin
- 325
- 2
- 12
1
vote
2 answers
Java Reading a txt that has different numbers in its column file and store data in an arraylist
Hello Guys I have a txt file below, I need to store the second column data but it gives me an error since some lines have 1 some have 2 and some have 3 input in each line. How can I solve that problem?
5
3 4
3 4
3 3
3 4
3 3
3 4
3 3
3 2
3 4
3 3
3…

Sabuha Kaya
- 17
- 6
1
vote
2 answers
Parsing a txt file into data frame, filling columns based on the multiple separators
Having a .txt file
structure as below
#n 1
a 1:0.0002 3:0.0003...
#n 2
b 2:0.0002 3:0.0003...
#n 3
a 1:0.0002 2:0.0003...
...
trying to parse into dataframe of the following structure
# type 1 2 3
1 a 0.0002 null …

2Napasa
- 378
- 1
- 5
- 17
1
vote
3 answers
Delete line that contains a string in a txt file python
I'm trying to delete a line in a txt file which contains a variable (email).
I want to delete the whole line which contains the email e.g. mano@gmail.com not just the variable
This is what I've come up with so far but it doesn't seem to work.
with…

mmanol
- 13
- 5
1
vote
1 answer
How to restrict fscanf properly on a string from a txt file? (need to read strings and integers seperated with whitespace AND "-")
I really hope someone is up for the task of helping, or pointing me to ressources that can, because I've been struggling with this for hours now.
I do not have a lot of experience in C yet, or coding in general,and I have this assignment where I…

MMAndersen
- 11
- 3
1
vote
0 answers
Finding Multiple Peaks in a Text file (txt) using Java Script
I'm developing a webpage where you can upload a text file with one column of data and then do some analysis on this data. The data is raw ECG sensor values and is converted to Voltage values. I would like to find the multiple peaks and their…

12bio23
- 203
- 1
- 2
- 6
1
vote
1 answer
word count from web text document result in 0
I tried the python codes from the article of Rasha Ashraf "Scraping EDGAR with Python".
He used urllib2 which is now invalid in python 3, I guess.
Thus, I changed it into urllib.
I could bring the following Edgar web page. However, the number of…

Jason SJ Yim
- 11
- 2
1
vote
1 answer
Matrix (2d array) and its values is not written into txt file correctly
In my program, I enable the user to decide the dimensions of their matrix and then input each cell's value in the matrix. This matrix is then saved to a .txt file as binary data. Sometimes, with certain matrices of certain values and dimensions, the…

Siddharth Chaudhary
- 35
- 4
1
vote
1 answer
How to import a fixed-width text file (with many variables) which the layout is stored in a SAS File (.sas)?
I cannot understand how to work with the following files:
a .sas file containing the location -column- and length of each variable (I have 500+); and
a text file containing values of these variables (I have more than 120k observations).
I already…

Luca
- 51
- 7
1
vote
1 answer
Export string values to .txt file
I begin in VBA and for my job, I have to analyse excel sheets and export my resume to .txt file.
I was able to create the name of my saving file ("NomFichier") - Yes, it's french ;) - and Also my path by choosing the emplacement of the saving file…

louis.b
- 11
- 1
1
vote
1 answer
How to find a specific text in a txt file using Powershell
I have a .txt file, listing some user names.
Like:
User1
User2
User3
I also have a .txt file, containing some of the same user names, along side other information:
User1 - user1@txt.com - 12341515 - yes
User2 - user2@txt.com - 13134141 - no
How…

Mr Printer
- 29
- 6
1
vote
0 answers
Reading txt file using scanner class and outputting 2 txt files
This is the prompt I was given
"Write a program and use the attached file (babynames.txt) as input file, and create two output tiles. One file listing out all boys names, and the other file listing out all girls name"
Here is what I have so…

x65748
- 11
- 2
1
vote
1 answer
How to put a line breaker inside a specific position in the txt file?
I have a .txt file that contains a lot of textual information I need for my research. So, I'm trying to write a program that does a keyword search (in my case, I need the phrase "sold salt"), after which it writes to a new file line by line the text…

Artyom Husak
- 13
- 3