Most voted "txt" questions
TXT is a file extension or file that stores text, and is structured as a sequence of lines. May have one or more special characters, known as an end-of-file marker, after the last line of text.
Learn more…182 questions
Sort by count of
-
0
votes0
answers44
viewsDelay when generating txt file and downloading using php
The problem is the following: The application makes a query in the database like size, color, price, etc... This will be placed in the txt file for later use inside the stock collector. The problem…
-
0
votes1
answer203
viewsHow to save requests return and save to . txt or . csv file in Python
I wonder if it is possible to save the return of a request in file . txt or . csv in Python. I need some NIST data and for that I made the following code: import requests from bs4 import…
-
0
votes0
answers45
viewsImport some columns from TXT to VBA
Good afternoon! I’m quite a beginner and I’m having doubts about how to proceed. I have a TXT and could import it to VBA and until I could get the first line that I didn’t need. However, I need to…
-
0
votes0
answers22
viewsDo texts loaded via Jquery harm SEO?
I’m developing a website, but for technical reasons I won’t be able to use a database and no server side language. As the system will have MANY posts (more than 500), I am loading this via Jquery,…
-
0
votes2
answers133
viewsHow to copy a. txt encoded file to another decoded file using Assignfile?
I have a. txt file encoded and need to copy the decoded content to another . txt. In the first file, I have the following: Gcbqrm5mnp4 Gcbqrm5mnp8 Gcbqrm5mnpc When the new file is created, it is…
-
0
votes0
answers47
viewsIn Python, how to delete " n" from . txt files?
I’m at Jupyter Notebook working with Python. I am importing the txt files with the following code: allLines = [] path = '../data/txt/' fileList = os.listdir(path) for i in fileList: file =…
-
0
votes2
answers66
viewsHow to get specific text from a txt file in C#?
I’m a layman, still taking the first steps in programming and C# and I’m having trouble solving a problem. I would like to search a specific information in a txt file with the following lines: Nodal…
-
0
votes1
answer151
viewsC# - Read txt file and return value in textbox
I am making an application that from a selection of Combobox, it reads the txt file (containing two columns) and returns me the value of the same row but column 1 (column 2 would be the value of…
-
0
votes0
answers10
viewsFill in Jtextfield from jComboBox
I have a. txt file with strings like this: luis;123;456;789;11/11/1111 The first part of my problem was popular jComboBox only with the first value (name), I managed to do some good, but now I need…
-
-1
votes1
answer180
viewsWhy is the TXT file having problems using file_put_contents?
I am creating files with the "file_put_contents" function of PHP, on my machine it opens normal in Notepad++, but when sending to someone and it will open in ultra Edit it asks "Do you want to…
-
-1
votes1
answer590
viewsGenerate . txt file with PHP with "til" (~) etc
I am unable to generate a file . txt where the tilde and accents are printed correctly. I am using the fwrite. excerpt from the code: $arquivo = fopen('aaa.txt', 'w+'); $escrever = fwrite($arquivo,…
-
-1
votes1
answer50
viewsJava does not finish txt file, generates txt more than 100MB
My output file, not for what reason, now does not finish, if let running creates text file with more than 1GB, just so if I terminate the process in task manager, in the link above this the code of…
txtasked 6 years, 11 months ago Alex Basto 11 -
-1
votes1
answer54
viewsGenerate txt with standard format
all right? I need to generate a txt file with a default format as below: D00000002 200014002154129 $9997 7720 0000 0012 * 12/19 *CLARICE LISPECTOR *0014-00 215412-9 * %B9997772000000012^CLARICE…
-
-1
votes1
answer90
viewsRead file does not insert accents
if(isset($_GET['rf'])){ $filename=$_GET['rf']; //$path=$_SERVER['DOCUMENT_ROOT'].'/'.$filename; //echo $path; if(file_exists("subs/" . $filename)){ header('Content-Type: text/plain');…
-
-1
votes1
answer294
viewsExports database query to txt with php
//Arquivo txt $arquivo = "email.txt"; //abrir arquivo txt $arq = fopen($arquivo,"w"); //faz consulta no banco de dados $result = mysql_query("SELECT * FROM usuarios"); $cabecalho = "Emails…
-
-1
votes1
answer395
viewsPYTHON DELIMITER
How do I read a file containing data separated by period and comma appear in the table in Pyhton? Initially I have two txt files, I am using the pandas library I need to generate a txt third and put…
-
-1
votes1
answer1372
viewsHow to write to a txt file in Python?
How to open a txt file and add the contents of some variable in it? For example, a content that leaves the print in the code below. for passw in senha_list: print(passw,end='')…
-
-1
votes1
answer378
viewsHow to save many arrays in the same txt in Python3?
Hello! I have a code in Python3 and in each looping it generates 5 column arrays. For the first looping I was able to record each array as a column in a txt using numpy.savetxt:…
-
-1
votes1
answer44
viewshow to take a single text from a specific line in a python txt file
I am making a mini system to register products and change their quantities, but I am dealing with a problem of deleting a part of the text in a certain line, for example: '00000 1' to '00000…
-
-1
votes1
answer80
viewsRemove characters from python lists
Hello I have a code that le two files one txt and a XML and then checks a string inside a list THE XML: <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="4.00"> <NFe…
-
-1
votes1
answer219
viewsHow to remove a phrase within a TXT file
Say hello to the boys, I’m needing a help, I want to remove a KEY inside a TXT file but I’m not getting. Keys.txt: aLZkGWPXTLVdpVl w17AzQZIy22soy9 rAcEiWHwopYz2Pk uKPhbc0Xok5a2aO my code . php:…
-
-1
votes1
answer467
viewsfopen: failed to open stream: No such file or directory
Hello I’m starting to learn PHP, and I created an HTML input that receives a TXT file that should be read in PHP but I’m having difficulties in reading the input file, which returns me the following…
-
-1
votes1
answer32
viewsI want to tweet every 240char but not recognized - Python(Tweepy)
I want the show to read. txt, record the 240char and post the tweet, and jump to the next 240char, as if you were reading and posting each line, but instead of serious line by amount of char. But I…
-
-1
votes1
answer20
viewstxt file content display in php
Hello, I’m trying to read a txt file created with data entered by users of a site (name, email, company and phone) and I want to display the information inside the txt file using php. My code so far…
-
-2
votes1
answer2446
viewsFind strings within *.txt files in C
I’m a beginner and I’m dying to do a program and C++ that requires doing two functions. 1) Searching a *.txt file for a specific string; 2) Through some type of index indicate the position of this…
-
-2
votes1
answer563
viewsHow to save while result to txt file?
Generates txt, but saves only the last entry of the database and in the precise case of all data. $querymail = mysql_query("select mat,nome from usuario "); while($data =…
-
-2
votes1
answer62
viewsWhat are the differences between using a . txt and . bat file in python?
I am looking for practical and simple ways to save information in a separate file, that even after the closing of the program.py (in python) the information is not lost. And there was a question,…
-
-2
votes1
answer196
viewsHow to export database data, generate a csv and download?
I have a sales screen, where the user selects a customer, a product, the quantity and makes the purchase, this information is recorded in the database. I need a button on the sales screen that…
-
-2
votes1
answer128
viewsQuery data in a txt file with python Tkinter
I’m creating a simple system to query employee data stored in a file txt. def read_from_file(): with open('dados.txt') as file: for line in file: line = line.rstrip('\n') nome, matricula,…
-
-3
votes1
answer92
viewsSearch a Input word in a TXT and find words that are in the same line in PHP
Example of TXT file: John;1 Peter;2 Marlon;3 Luke;4 etc.... By typing only the name in the Input I need that too the user ID appears, Example of Input: Marlon and when you type only name in Input,…
-
-3
votes2
answers107
viewsconvert strings to python
I am having doubts to resolve this exercise. First, follow example of txt file. 5/2 500+20 200-20 20*10 I need to read this txt file and solve the equations in Python. Follow the code I currently…
-
-3
votes2
answers70
viewsMODIFICATION AND READING OF DIRECTORIES IN C#
I am developing a C#project, which uses python scripts as an engine (I did not use Ironpython due to its limitations, I work with pandas), what I do is simply run the script through a PROCESS in c#,…