Questions tagged as 'txt'

0
answers

Saving files in txt with c ++

I am trying to create a program that saves the hashed stored data in 4 different txt files, as it is the hash index it chooses the file it should save. example: hash índice 0 = txt_0.txt hash índice 1 = txt_1.txt hash índice 2 = txt_2.txt h...
asked by 28.10.2016 / 14:36
2
answers

Add header and footer to txt file generated via phptxt

This script generates a txt extracted from MySQL: <?php include "conexao.php"; $querymail = mysql_query("select cod,nome,tipo,valor from livros"); fopen("txt/relatorio.txt", "w+"); while($data = mysql_fetch_array($querymai...
asked by 08.11.2016 / 15:39
1
answer

Split a .txt into other .txt through the identifier at the beginning of the line

I'm trying to split a file into smaller files, I'm getting via serversocket a file and I want this file to be divided according to the identifier that comes at the beginning of each line, I have this code so far, I can write some of the files, b...
asked by 02.05.2016 / 16:27
0
answers

PHP: TXT for multi-level Array

Well, yesterday I had asked for help on the subject here that friends soon helped me, but I came up against another problem: Then I realized that the .TXT file has several levels, not just 2 as I had observed yesterday. I tried every way to...
asked by 11.03.2016 / 02:51
2
answers

Problem reading txt file with PHP - fgets does not take the next line

Is everything good? I have a problem with reading a specific txt file. As you can see below my code uses fgets to read line by line. <?php extrairDadosNotificacao("arquivo1.txt"); extrairDadosNotificacao("arquivo2.txt"); function extrairDa...
asked by 21.11.2016 / 21:31
1
answer

Read file does not enter the 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'); //header('Content-Disposition: attachm...
asked by 05.11.2017 / 16:45
1
answer

Generate standard-format txt

Alright? 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 LISPEC...
asked by 19.09.2018 / 21:21
1
answer

Generate .txt file with PHP with "til" (~) etc

I am not able to generate a .txt file where the tilde and accents are printed correctly. I'm using fwrite . code snippet: $arquivo = fopen('aaa.txt', 'w+'); $escrever = fwrite($arquivo, $txt); fclose($arquivo);     
asked by 30.10.2017 / 18:48
1
answer

Why is the TXT file having problems using file_put_contents?

I'm creating files with the "file_put_contents" function of PHP, on my machine it opens normal on notepad ++, but when I send it to someone and it will open in ultra edit it asks "Do you want to convert 'file.txt' to DOS format? " The functio...
asked by 24.06.2016 / 20:26
1
answer

What differences are there in using a .txt and .bat file in python?

I'm looking for practical and simple ways to save information in a separate file, which even after the program closes.py (In python) the information is not lost. And therein was a question, what are the advantages of using a .txt and .bat file t...
asked by 22.06.2018 / 22:14