Questions tagged [text-files]
The TXT file type is primarily associated with 'Text File'. Open in Notepad, WordPad, or many other programs designated as text editors. A true text file will be pure ASCII text with no formatting.
text-files
6,732
questions
1
vote
4
answers
85
views
Duplicating entries in textfile for empty entries until a non-empty entry is found, then continue with the new entry
I have a very large textfile in which some entries are missing. The logic is persistent, as the first line of each "section" has the correct entries, every line after this initial line is ...
-1
votes
1
answer
36
views
Pushing text to a file in VBA that contains ", \, and > characters
I am trying to push text to a file that consists of the following string:
<exportfolder value="C:\placeholder_loc" />
In this, the "C:\placeholder_loc" is a different ...
2
votes
1
answer
55
views
Trouble Reading in .txt File
I have a text file I'd like to read in in MATLAB. Here is aforementioned text file (text_a2p.txt):
object index_image.nii
plane transverse
range 100 150
factor 3.1415926535897
coeff .0001 .0004 -.0006
...
0
votes
0
answers
33
views
Reading a Text File (M code) from a SharePoint Document Library
The code below is able to read a text file which contains M syntax and loads it into Power Query. I would like to upload the text file in a SharePoint Document Library for others to use the M syntax. ...
0
votes
0
answers
29
views
Adding Lines to text in Bulk
First of all, since English is not my native language, there may be spelling errors. I’m sorry for that.
Note: I'm using Windows PC
I have approximately 300 txt files. I want to add the line I want to ...
0
votes
1
answer
54
views
How can I create a ANSI encoded text file in UWP?
I'm currently working on a UWP project and would like to create a text file in ANSI charset (Windows-1252, ISO-8859-1).
The reader of this file only supports ANSI. If the reading side now expects the ...
0
votes
1
answer
25
views
How to delete a line in a text file with Python if it contains a certain word? [duplicate]
I have a text file structured as follows:
word 123 etc.
792 test abc
lorem ipsum word
92 testing
random 84
word 184 lmnop
Using Python, how can I delete every line that contains the word word?
0
votes
1
answer
37
views
Why can't I write to a text file in a myRIO project?
For a project, I need to gather data from the myRIO and write it to a text file on my laptop. When I create a myRIO project, connect it to the myRIO and run the program, it doesn't create a text file ...
1
vote
3
answers
50
views
Python look for text block, put in dictonary array
I am trying to look for a text block, and put some of the lines in a dictionary array. So a dictionary for every text block I find. for example the following text:
some
other
text
address-object ...
0
votes
2
answers
65
views
with statement seems to not close file correctly (a subprocess also uses the file)
A step that I am trying to achieve in my program (which is another auto grader, but in python) is to write a temporary txt file containing the output of an outside program (students' homework). I am ...
0
votes
0
answers
94
views
ACCDE error 3625 The text file specification 'X' does not exist
Using MS Access 2019 to deploy an .accde form that I developed.
It checks the value of the current form's version from a .tab text file that is hosted in a shared folder and imported as a linked table ...
0
votes
0
answers
20
views
How can I remove the random texts that shows up in my textfile? [duplicate]
Summary: I used JOptionPane to ask the user a question about their dental problems. I used an ArrayList to read the options they chose and used a class object to return the complimentary treatment as ...
0
votes
0
answers
50
views
Error when trying to mutate a dataframe containing lists
I have a dataframe containing lists, which looks similar to the following with the exception that the original has a lot more elements and rows:
p stim ...
1
vote
2
answers
63
views
How to replace multiple matches of reoccurring word in a .txt file with new words?
So I have a .txt file with several dataframes. It looks similar to the following example:
$stim
rt 82289.8878539, 82294.8309221, 82299.3357436, 82304.1822179
category 1, 2, 1, 1
orient 263, 313, 266, ...
-1
votes
1
answer
93
views
Is it possible to put the captions generated by AI models back into the pdf file?
I have a pdf that contains multiple pages where each page consists of texts and/or images. I have found ways to extract images from a pdf file and I have found ways to use AI models to generate ...