Questions tagged as 'txt'

1
answer

Extract data between specific lines of txt to worksheet in VBA

I am creating a code that will automate the reports at work from a button. The measuring equipment gives me a file in .MMF or .TXT, and there is an important part that I am breaking my head to be able to solve and I am a few days without advanci...
asked by 20.02.2018 / 16:54
1
answer

How to remove duplicate rows from txt using php?

Well I'm creating a div that updates every x seconds and I'm displaying the currently logged in users, however my code is inserting each update the same record. Is there any way to exclude repeated lines? Here is the code I'm currently...
asked by 10.02.2016 / 00:13
2
answers

Read txt and generate a new com; at the end of each line

I created a system that imports the names generated in TXT, but the system interprets the ; at the end of each line and writes to the bank, but my client's commercial system exports the data without the ; ; in the end, the worst that is a telem...
asked by 11.11.2016 / 01:28
2
answers

Problems opening and closing file with fwrite

Good morning everyone! I have a problem in the part of reopening a file in TxT, the problem that in the first statement it normally opens, writes and closes. But below in the script I try to reopen the file again and it does not even open, it ju...
asked by 25.04.2018 / 16:58
2
answers

Create the .txt file in PYTHON if it does not exist

The code: arquivo = open(input('Nome do arquivo a ser editado:'), 'r') texto = arquivo.readlines() texto.append(input('Insira o texto:')) arquivo = open(input('Nome do arquivo a ser editado:'), 'w') arqu...
asked by 06.06.2016 / 03:09
2
answers

read txt file with less than 5 elements using read.table

I'm trying to read the txt file with two columns below: +-----------------------------------------------------------------------------+ | Category Information | square| | #|description...
asked by 13.12.2018 / 01:21
1
answer

Replace is not working C #

I'm replacing one code with another in each line that the code is found. But the replace simply does not work, it goes through it and the line continues the same way. As you can see in the image below, if used within the immediate, it appears to...
asked by 10.01.2017 / 13:47
2
answers

How do I get a specific column from a .txt file with PHP

I have a txr file with several columns but I want to get only a specific value from the first one. So far I've been able to open the file and separate the values from the header. <?php error_reporting(0); // $delimitador = "/[\t]/"; // Abr...
asked by 26.12.2017 / 13:29
2
answers

Reading rows from a TXT to ArrayList

I need to read a log recorded in a TXT file that contains geographic coordinates in the following form: -54.123440,-21.123456 -54.123425,-21.123467 -54.123435,-21.123480 -54.123444,-21.123444 -54.123452,-21.123100 Each line has the longitud...
asked by 18.05.2018 / 21:23
2
answers

How can I export the output to a text file in C?

I want to pass the program output to a .txt file, how would I do it?     
asked by 24.07.2018 / 22:10