Skip to main content

Questions tagged [textfiles]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
533 views

notepad is displaying txt file contents as weird symbols

I am writing integer values into file from kotlin (kotlin Int type) using something like this var1BufferedWriter?.write(String.format("%d\n", intvar ) ) var2BufferedWriter?.write(String....
user13267's user avatar
  • 1,761
14 votes
1 answer
4k views

Why does my "grep" stop filtering a non-ASCII file it thinks is "binary"?

I'm working with a Windows-10 computer, using a WSL. I'm investigating a logfile, produced by NLog in a C# application. I'm expecting log entries to appear everywhere throughout the file, but I see ...
Dominique's user avatar
  • 2,321
2 votes
1 answer
963 views

Windows batch script to add characters in first row of every text file in a folder

I need help with this. I am new to bat files. I want to drop a number of text files into a folder on my Windows desktop. In that folder I want to have a bat file that will run on those text files. All ...
tacoman9000's user avatar
0 votes
1 answer
138 views

Size difference between powershell and command line generated txt files

I encountered a situation I'm unable to explain and understand. I created a text file by running the following command in command line: certutil -v -template > documents\templates.txt Because I ...
Petr Synek's user avatar
0 votes
2 answers
3k views

Convert text file to json file using batch script

@echo off setlocal EnableDelayedExpansion echo { >>post.json FOR /F "tokens=1,2 skip=1 delims==" %%a in (hardware.txt) do ( set temp=%%a set res=%%b call :Trim result !...
Gaurav Sahane's user avatar
0 votes
1 answer
1k views

Search files in sub- /folders from txt-file and save them in a txt-file as Paths

I want to search for different articlenumbers out of a list (txt-file) in a certain folder. Then the paths of the files should be saved in a Txt-Output. Also i would be nice if i could differ the ...
Plamsmageddon's user avatar
0 votes
2 answers
591 views

How to insert new line separator on regular (every 13th) intervals of delimiter in text file which has no new line separator

I have a TXT file which has some raw data. I need to convert them into Excel, but my attempts are not successful. The file has hundreds of times the delimiter (separator) and that helps me convert to ...
Kampun's user avatar
  • 3
0 votes
1 answer
2k views

Converting PowerPoint with complex text to a Unicode text file

I found the following macro code for converting a PowerPoint file to a text file: Sub ExportText() Dim oPres As Presentation Dim oSlides As Slides Dim oSld As Slide 'Slide Object Dim ...
Minimus Heximus's user avatar
1 vote
1 answer
9k views

Removing specific words from text file

I have a text file tat contains email:name | address = date time I want remove everything that comes after name from each line and leave me just email:name is there a way to do that?
Amin's user avatar
  • 13
0 votes
1 answer
836 views

Use Powershell to Download Webfiles Based on UTF8 Text File List

Aiming to download website files via powershell; get the name from each line of a text file; with UTF8 support (supporting international text names); & save the files to a directory with the ...
user avatar
1 vote
1 answer
248 views

Is the size of a text file containing a string the exact same as 2 text files each containing half of the original string?

If I have a string 'abcde', and I saved it in file1.txt, and saved 'abc' in file2.txt, and 'de' in file3.txt, does the sum of the sizes of file2.txt and file3.txt is exactly equal to file1.txt? I ...
Hasan Nahleh's user avatar
1 vote
1 answer
916 views

Git revision control on a binary file (that seems only to have text)

A program I use (TopSolid) saves it's settings in the top.cfg file. When I open the file with a text editor (notepad++ and notepad) I can see only text. Sample: A_COATING_NAME "" A_FINISHING_NAME ...
quazoosl's user avatar
  • 181
0 votes
1 answer
1k views

Automate copying part of a text and paste it somewhere else on the same line for multiple lines

I have text files with some information I want to copy from one place and paste somewhere else on the same line. For instance, I have something like: Random text here { Name = "Tropical Smoothie", ...
joetex72's user avatar
1 vote
1 answer
47 views

Match files on line beginning

When giving parties, I record everything my guests eat.[1] Note: I've inserted a few tabs to make everything readable. party1.txt: Bernhard Apple Jeremy Cake Liz Cake Daisy ...
Bowi's user avatar
  • 1,557
0 votes
0 answers
654 views

Firefox opens a filetype (textfiles, txt) incorrectly

My Firefox (Quantum on Windows 7) keeps opening text files (with .txt suffix) in the browser, despite having set it to always ask for text documents in Settings -> General -> Applications. The ...
Albin's user avatar
  • 11k
1 vote
1 answer
1k views

Consequences of removing NUL characters from a text file?

I have quite a large text file (around 20GB) that I use as a simple database, so each record is separated by a new line, and the breaking of this format will cause problems. This file also contains ...
Hashim Aziz's user avatar
  • 13.2k
1 vote
1 answer
424 views

Visual Studio 2015 keeps getting standard file association for txt files

On my System running Windows 10 Professional, I am using Visual Studio 2015, which is the standard program associated to Text-Files, i.e all files with a suffix .txt, which means all files of this ...
Erik's user avatar
  • 1,407
0 votes
0 answers
327 views

Purpose of NUL character in Bitlocker recovery text file

I was setting up BitLocker today and my recovery text file looks like this: However, I tried to copy and paste this file into another document for backup purposes, and it came out looking like this: ...
aaronsnoswell's user avatar
0 votes
1 answer
118 views

How do I import .R or .r files into Evernote as notes?

I have many r files that I'd like to be able to keep and search in Evernote, so importing them as notes would be great. Importing them as attachments doesn't let me search them.
Grubbmeister's user avatar
0 votes
2 answers
2k views

Czech symbols changed into gibberish

I have this bizarre problem with Windows 10 Home edition. When I open some basic text file, .srt or .txt for example, it has different encoding. I guess it's because of different encoding since I am a ...
Alorain's user avatar
  • 11
11 votes
3 answers
12k views

Change Firefox default encoding for text files

Text files do not include character encoding information, so Firefox has no way of knowing which one is correct. Through the menu View → Text encoding I can select the appropriate encoding. I find ...
gerrit's user avatar
  • 1,618
0 votes
0 answers
133 views

Removing replies in downloaded emails (i.e., non-consecutive duplicate sentences from txt file)

Hello Experts and Fellow Learners! I have dozens of text files that contain monthly archives of a listserv. I'm trying to eliminate/delete quoted replies so that each message only appears once across ...
Jeremy's user avatar
  • 1
1 vote
1 answer
87 views

Format of Textfile?

There was a problem when I copied a Text file from Linux to Windows. The Text was not as the original, it was shifted to almost one line, also the line break setting couldn't help. The content was ...
Tech-IO's user avatar
  • 461
0 votes
1 answer
232 views

Command Line to find files in folder within folders in Windows Explorer

I do this code in command line to find for series of files that has a .java property, then export in a textfile dir *.java > output.txt However there are still folders after the current folder, ...
rickyProgrammer's user avatar
0 votes
1 answer
7k views

Copy or Export Windows Files to Excel Per Column using Command Line

I need to copy the whole content of Windows Files into Excel Document. Below is the example Image of the Windows Explorer containing the files to be exported Using Command Prompt I do this line to ...
rickyProgrammer's user avatar
0 votes
0 answers
411 views

awk and cut on a very large file

I have to extract a column of data from a very large file >100GB. I know how to use the awk and cut commands do it, but would like to know if one is more efficient (from a speed perspective) for ...
bryan's user avatar
  • 8,468
1 vote
0 answers
439 views

Text file with row headings to excel file with columns

A text file with the following content: userId=10101 givenname=Mark orclmaidenname=Visser [email protected] userID=10102 givenname=Jan orclmaidenname=Klaassen userID=10104 givenname=...
Grote's user avatar
  • 11
14 votes
7 answers
86k views

How can I convert a PowerPoint to plain text?

I have a Powerpoint Presentation (.pptx) file with 100 slides. I want to take all of the text from it and save it as a plain text file. How can I do this? PowerPoint doesn't seem to let you save it ...
Pikamander2's user avatar
2 votes
4 answers
4k views

How can I find binary data in my text file?

I have a huge log file (several GBs), but somehow there is binary data (grep is annoyed by it) in there, which of course shouldn't be. I know how I can read the file anyway. I don't know how I can ...
keiki's user avatar
  • 403
2 votes
2 answers
4k views

Stop Filezilla from inserting blank lines in text files

Often, from different remote hosts, FileZilla will download a .cssor .php file and insert blank lines in between existing lines. This destroys nice formatting. PC = Windows 10 Pro 64-bit. How do I ...
Steve's user avatar
  • 2,841
0 votes
0 answers
1k views

Saving web pages in Firefox as text or RTF files that preserve basic formatting and positioning

Is it possible, within Firefox, to save pages containing text while keeping the basic formatting and positioning, but not saving any executable code (JavaScript)? It doesn't need to be perfect, just ...
End Antisemitic Hate's user avatar
2 votes
3 answers
7k views

compare and find differences of 2 huge text files (50 gb)

I want to find the differences between two text files (more than 50 GB) each. I tried diff but, I got memory exhausted problem. I am using Windows7. My code is in PHP. I was calling diff from my ...
Reema50's user avatar
  • 21
1 vote
0 answers
139 views

OwnCloud 8: how to show raw text file in brownser instead of the download button?

The answer to my question has already been answered here by @ceremcem. However, in the meanwhile (the question is from 2014), OwnCloud has evolved and the URL structure has changed. According to my ...
soa's user avatar
  • 11
1 vote
1 answer
2k views

How to decode text file with symbols like \uXXXX?

I have a 10 Mb file containing \uXXXX characters. How can I decode this with Sublime Text? Example:
LA_'s user avatar
  • 634
1 vote
1 answer
799 views

Why does Excel only invoke the Text Import Wizard for .txt files?

Excel ignores comma delimiters in .csv files, but invokes the Text Import Wizard for .txt files that "appear delimited". Surely it should behave the same way for .csv files?
ProfK's user avatar
  • 2,659
3 votes
1 answer
6k views

Cmd output to file gives wrong character encoding

When I redirect the cmd command tree to a text file: tree > c:\tree.txt and open the file with notepad I get the following result: Folder PATH listing Volume serial number is 00000:0000 Z:. ...
Stefan's user avatar
  • 152
3 votes
3 answers
199 views

How to format my text file for better appearance?

I want to format my text file for better appearance. So I want any command or any shell script which will format my file as per my expectation. Input File: Index Name City 1. Ravi Bhuva Ahmedabad 2. ...
ravibhuva9955's user avatar
28 votes
3 answers
32k views

How do I get Google Drive to open text files with arbitrary extensions as text files?

I have text files on Google Drive that do not end with the .txt suffix (such as: .r, .bas, .awk...). I want to view them using the Drive Notepad app, but it does not recognize the files as text. Is ...
eliavs's user avatar
  • 343
0 votes
1 answer
222 views

Recovery text data from a NTFS partition after disk checking

I have a Win 7 laptop. Today, when I have started Windows, it asked me for checking the partition F: on my hard drive. I accepted. It shows the message that it will delete invalid entries. And ...
simpletron's user avatar
1 vote
2 answers
6k views

How do I convert many text files from <some_encoding> to utf8-no-bom?

I'm looking to convert lots of text files (40+) from ISO-Latin-1 to UTF8-no-bom. How can I accomplish this?
RProgram's user avatar
  • 570
2 votes
3 answers
687 views

Filter file when a column is in whitelist

Suppose I have two files, File A: a,abcdef b,bcdefa c,cdefab a,defabc b,efabcd c,fabcde And File B: a b The output I'm looking for is: a,abcdef b,bcdefa a,defabc b,efabcd So, basically, I want ...
Hugo Sereno Ferreira's user avatar
5 votes
2 answers
18k views

Display Text File On Desktop [closed]

I am looking for freeware that will allow me to display a text file on my windows desktop. Hopefully some software that is lightweight, and will work on WinXP to Win8. I plan to use this freeware in ...
crosenblum's user avatar
5 votes
2 answers
769 views

file changes -- notification and diff

I'm looking for a way to be notified if a text file changes (Windows 7), and be offered a file diff upon such a change. For example, the text editor Notepad++ does part of this, notifying me of an ...
newenglander's user avatar
20 votes
2 answers
18k views

Edit first line of large text file

I have a huge text file, far too big for the whole thing to be paged into memory. All I need to do with this text file is edit the first line (its a CSV file and I need to alter the titles). Is there ...
lynks's user avatar
  • 1,881
17 votes
4 answers
76k views

How do I create a multiline text file with Echo in Windows command prompt?

I'm using Windows 7 and I would like to quickly create a small text file with a few lines of text in the Command prompt. I can create a single line text file with: echo hello > myfile.txt but ...
Jonas's user avatar
  • 28k
3 votes
1 answer
4k views

Free WinMerge alternative with more clear line comparison [closed]

I use WinMerge to compare text files, usually alogn with TortoiseSVN. It is pretty good. The only thing which is inconvenient for me is very rough line comparison. For instance, if I have two long ...
sergtk's user avatar
  • 490
35 votes
5 answers
33k views

How to replace part of a text file between markers with another text file?

Say I have a text file like this: # custom content section a b ### BEGIN GENERATED CONTENT c d ### END GENERATED CONTENT I'd like to replace the portion between the GENERATED CONTENT tags with the ...
smokris's user avatar
  • 1,612
4 votes
1 answer
18k views

How can I make an Excel pivot table from very large text file?

I have a text file with tab delimited columns, that is longer than can be imported into an Excel worksheet (> 1,000,000 rows). I'm trying to figure out how to create an Excel pivot table from the data ...
scae's user avatar
  • 171
23 votes
2 answers
5k views

Do text files store their encoding method for later decoding?

I was wondering if some text files store their encoding method along their text content for later decoding? Or is it the text viewer's job to guess the encoding method for a given text file, and the ...
Tim's user avatar
  • 17.4k
2 votes
2 answers
227 views

convert lines to fixed column length

I would like to simply take a given text file and enforce a maximum column length of say 80. How can I turn this: Four score and seven years ago our fathers brought forth on this continent, a new ...
Zombies's user avatar
  • 3,912