Questions tagged as 'txt'

1
answer

How to change row in text file in C #?

I currently report on the variable stringantiga the exact value to find and replace it. Is there any way to substitute for the line number instead of the exact value of stringantiga ? string arquivo = ConfigurationSettings.AppS...
asked by 16.02.2018 / 16:03
2
answers

Save textarea content as text file

I need to make a code that when inserting what is requested in the textarea and pressing the submit button, save the content entered in the textarea to a .txt (with a line break. already gave submit before and saved,...
asked by 22.12.2017 / 00:27
0
answers

Linux is not writing txt

I have a code that should be executed by a Cron function from Monday to Friday at 7 o'clock. 00 7 * * 1-5 php /var/www/html/felipe_projetos/Poc/ch_ch.php This code should write some data in a txt, but this does not happen, when I run the pa...
asked by 11.12.2017 / 13:03
2
answers

How to check if the txt file has a space in the last line

I have a script here that looks for all the .txt files in a folder and then joins them into one file. The problem is that some files have a "\ n" in the last line, causing the next line not to be below the previous one, causing errors when I...
asked by 09.11.2017 / 14:09
1
answer

How to create a C ranking?

How can I read and sort a text file where the information looks like this: carlos 5 lucas 20 josue 10 * The file looks like this. Saved randomly but when I read the precise information that is in the order of those who hav...
asked by 16.06.2017 / 22:10
1
answer

Saving result in txt file

How would I save the output of the program to txt file? in the example I call cmd and ask you to do something, I wanted to save the result to a text file. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamRea...
asked by 30.04.2017 / 23:38
1
answer

Txt manipulation - Separate blocks based on a pattern

I have a txt with some information. The txt follows the following pattern: 1 - Starting block 2 - Information 3 - Description of line 2 So, for example 190845 3890580235203895 0329045832854880328 58908349058340534859 hjdfhgjdfhg dg...
asked by 08.05.2017 / 15:56
1
answer

How to format a txt file, inserting columns and changing format of date and time with script in php

I have text file generated from an access control device, when down the file it comes without columns of identification, what do I need to do? Insert columns and paste the date format so that the file can be imported into mysql. This way I can s...
asked by 10.10.2016 / 17:30
0
answers

Create and save text file (.txt) with vb.net? [closed]

Layout Used Nomenclature: XXXXXX_DDMMYYYY_ZZZZZ.TXT DD = DAY / MM = MONTH / YYYY = YEAR: XXXXXX = It will be a 6-digit fixed code with zeros on the left. ZZZZZ = It will be a sequential file with 5 digits with leading zeros.     
asked by 10.10.2016 / 21:13
1
answer

How to compare user-entered strings with strings already saved in a .txt

I'm working with file manipulation and I'm not able to compare what the user types with the password and login saved in the person's registration file! I can not get a specific position within .txt public class Validacao { public static...
asked by 16.06.2016 / 19:09