Questions tagged [txt]

txt is the conventional filename extension of text files.

1467 questions
-1
votes
3 answers

Why does my program add additional an additional blank space at the beginning of the row?

Hello I hope you can help me, I'm trying to make an algorithm that takes a txt file with a list of names, reorder them randomly and assign them to teams. It works, the only issue I have is that for some reason it adds an extra space in all rows of…
-1
votes
1 answer

Sort .txt data in a special way in java

I have a .txt file that i wanna sort that looks like this : GENEBOI INC COM 15893X590 46,741 174,700 SH DFND 4,11 174,700 0 0 DCHATRA RESTAURATION GROUP INC N CL A 14771P827 2,659,074 5,213,461 SH DFND 4,8,11…
alge124
  • 19
  • 3
-1
votes
1 answer

How to convert entries in .txt file to XML

I have fetched all the message names and signal names from the dbc using Python in the format shown below in a txt file: MessageName1 Signal_Name1 MessageName2 Signal_Name2 Signal_Name3 MessageName3 Signal_Name4 Signal_Name5 Signal_Name6 Each and…
Akash
  • 1
  • 1
-1
votes
3 answers

How to extract the first and last value from a txt file, in python?

I have a txt file made like this: 2,5,25,6 3,5,78,6, 5,23,24,85 6,4,79,9 69,23,12,51 I should extract only two values that are the first value in the first line 2 and the first value in the last line 69. The program I wrote is the following: with…
luna8899
  • 55
  • 5
-1
votes
1 answer

How to add a number from a local txt file into JS "let" keyword

I am trying to place a number from a local TXT file in the "let count = 0" instruction, so "let count = number.txt" That way the counter will read the number placed on the txt file and perform the addition/subtraction operation. Thank…
Y M
  • 1
  • 2
-1
votes
1 answer

Reading and parsing from a text file

I try to take the positions from each line from a txt file and then give them to a tree that has been spawned.I help out in this area: Loads the Coordinates from the save file. I would like to have it listed in such a way that the 3 digits in each…
-1
votes
2 answers

extracting info from a text file in python

I am making a system in which when a user plays my game, it compares their score to what they have scored before by using a username and password. the info is stored in text file in the format: score*username*password. I am trying to get those into…
James.L
  • 55
  • 5
-1
votes
1 answer

How to write a text file consisting of double values into an array in Swift

Does anyone know how it is possible in Swift to read the contents of a text file into an array? I'm having problems with the data type conversion here and so far I can't find a way to save a file that consists of double values into an array. In…
-1
votes
2 answers

How can I create a dictionary out of a .txt file with this specific data structure?

The txt file i'm working with contains something like this: [ { "Data": "asdf", "Monday": "321.247", "Tuesday": "27.801", "Thursday": "35.235" }, { "Data": "whatever", "Monday": "321.247", "Tuesday": "207.568", …
cYbersYn
  • 13
  • 3
-1
votes
3 answers

Reading txt file on network with php

I need to read and parse the txt file on the network with PHP. "Warning: file_get_contents(file//10.0.2.129/lims/lims.txt): failed to open stream: No such file or directory in C:\AppServ\www\mail\index.php on line 2" This way I get the error…
Sefa Kuru
  • 13
  • 6
-1
votes
3 answers

How can I safe audiosamples in a textfile --> Swift

The question is how it is possible to save audio samples of an audio file into a text file. I have the special case that I have stored the samples in an array of UnsafeMutableRawBufferPointers and now I wonder how I can put them into a text file. In…
-1
votes
1 answer

What are my options for packaging my Java Project?

So I am working on my first program that I'm actually making some money off of. It consists of a .jar, two txt files (user accessible), a few batch files, and some images. Are there any options for packaging these nicely together instead of passing…
Tevett Goad
  • 138
  • 1
  • 7
-1
votes
1 answer

Extract all line in txt with PHP

I have a file with several text. In this text always exists a line with especific tags like this: c8c453a568280e8edfad6d6cc4121e3ac8ffc6709001b40a24bb4c0cfcdba8ced7a54a164c4c87d4b58a29fb626e9941 I need…
Andres Zambrano
  • 23
  • 1
  • 10
-2
votes
0 answers

ESP8266 DNS library to resolve TXT records

I want to ask if there's any DNS (client) library for ESP8266/ESP32 which can handle (resolve) DNS TXT records? (I need to get it as a string and parse it later in my program) I tried googling it but, to my surprise I didn't find anything…
Markus
  • 17
  • 3
-2
votes
0 answers

how to write onto the first line in a txt file?

i want to write lines into a txt file one at a time, however when doing this they get inputted in this order: first input second input third input forth input however, i want to to be inputted as: forth input third input second input first…
Isohel
  • 23
  • 9