Questions tagged [txt]

txt is the conventional filename extension of text files.

1467 questions
-3
votes
1 answer

Export jagged array from C# into text file or excel spreadsheet

All I need to do is take a jagged array and print the values so I can bring it to excel to make graphs. The array is double integer. I have seen alot of posts on doing the opposite but not on bringing it from C# to a text file.
jt4
  • 1
-3
votes
1 answer

PowerShell: Parse CSV file and remove only the third comma

I would to remove only the fifth comma in a CSV file and remove all additional space. i.e. Original file A,B100537 ,8438,TRUST ,VECCO 4 PORT USB 2.0 MINI HUB ,BLACK …
Ngc7771
  • 7
  • 3
-4
votes
2 answers

How do I get the data of a .txt file using js?

I need a dictionary for my word game. I have it downloaded and I know the storage path. I have looked for an hour or two(with a couple short breaks) looking for solutions. They either didn't work or were too complicated for me to implement, although…
-4
votes
1 answer

How to reverse a txt file in python 3.8?

data = data2 = data3 = "" with open('pushkin.txt', encoding='utf-8', mode='r') as fp: data = fp.read() with open('romeo.txt', encoding='utf-8', mode='r') as fp: data2 = fp.read() with open('byron.txt', encoding='utf-8', mode='r') as fp: …
Teriyaki
  • 29
  • 4
-4
votes
2 answers

Turn every line of txt into list with strings

how to turn each line of txt file into list of strings example sentences board games for kids house with view on the sea I need output like this in python sentences = ["board games for kids ","house with view on the sea"]
-4
votes
1 answer

How to convert txt to dictionary in python

Can someone please explain me why the code to transfer this txt.file to dictionary is the answer that I written below, because I don't understand the flow. task : convert this txt file to dictionary house_price.txt= land, building,…
anna
  • 1
  • 2
-4
votes
2 answers

Replace text inside .txt file or .xml file using loop

I want to add variables to my file so it can be read by another programme. Each variable name needs to be unique. I've tried searching lots on Stack Overflow but none of the answers solve my problem in one go and I'm too inexperienced to glue them…
-4
votes
1 answer

How can I make individual people append text/strings to a .txt file I have on my server using php?

Let's say user1 writes "Hello" in a textbox and submits it, and user2 writes later that day " World" and submits it. How can i code it so their inputs get sent to my .txt file? So the .txt file should look like this: "Hello World". This might be a…
ArturO_O
  • 1
  • 1
-4
votes
1 answer

Reading text files with Python

I have a text file with something like a million lines that are formatted like…
KaspDL
  • 1
-5
votes
2 answers

PHP Login Code Not Working - Forms And TXT File Saving

Storing passwords in a flat file is a non-negotiable requirement of my project. I have been trying to make a system that allows users to signup and login using their username and password. (passwords are hashed and salted) So far, I've completed the…
KadenBlox
  • 5
  • 7
-6
votes
1 answer

Php variable from .txt

I want to create a .txt file with the following: $country = "china"; $valuta = "dollar"; And than I want to create a .php file with some text like: This is $country where they use $valuta How do I achieve this in 2 different files Maybe include once…
Strtz
  • 9
  • 3
1 2 3
97
98