Questions tagged [notepad]

Notepad is a simple text editor for Microsoft Windows. Use this tag for issues relating to interfacing with Notepad and/or duplicating Notepad functionality.

Notepad is a simple text editor for Microsoft Windows. It has been included in all versions of Microsoft Windows since Windows 1.0 in 1985.

787 questions
5
votes
5 answers

how to copy all text from a certain webpage and save it to notepad C#

I have a C# Windows Forms app that launches a webpage based on some criteria. Now I would like my app to automatically copy all the text from that page (which is in CSV format) and paste and save it in notepad. Here is a link to an example of the…
Patrick Doyle
  • 87
  • 2
  • 9
5
votes
3 answers

UTF-8 characters missing or displayed as boxes in Notepad, but works fine in webbrowser and other text editors

I have UTF-8 text stored in DB and served as text/plain; charset=utf-8 in a web application. All the things are working fine. I can see the UTF-8 text on browser window without any problem. But when I save that text to a file and try to open it in…
JAVAGeek
  • 2,674
  • 8
  • 32
  • 52
4
votes
1 answer

Wrong display of text file created by C program when opened in Notepad

#include #include void init(char*filename) { FILE* f = fopen(filename,"w"); fprintf(f,"%d ",8); fprintf(f,"%d ",6); int i, j; for(i = 0; i < 8; i ++) { for(j = 0; j < 8; j ++) { …
Stack
  • 111
  • 6
4
votes
2 answers

NotePad++ regex remove words with space and certain letters

I'm trying to remove words that feature a "com" and ends with a ".". I would like to remove the full word and leave the "." Here is an example of the starting text: This is a test testcom. I would like the output to be: This is a test . What I…
bakingsoda
  • 57
  • 7
4
votes
2 answers

Write text to file in C# with 513 space characters

Here is a code that writes the string to a file System.IO.File.WriteAllText("test.txt", "P …
amyn
  • 922
  • 11
  • 24
4
votes
3 answers

Remove all numbers + symbols from line in Notepad++

Is it possible to remove every line in a notepad++ Not Containing a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U …
moon93
  • 129
  • 3
  • 11
4
votes
8 answers

Open txt file from C# application

The following code is suppose to open CMD from my C# application and open the file text.txt. I tried to set the file path as an environment variable but when notepad opens it looks for %file%.txt instead of text.txt Any idea…
anonymous
4
votes
2 answers

Regex - How to delete the first 10 lines / and the last 10 lines

I'm trying to make a regex that deletes the first and the last 10 lines of my 200 txt files with "Search and Replace all" I tried (\s*^(\h*\S.*)){10} to delete the first 10 lines blanks included but it doesn't work well.
Just Me
  • 864
  • 2
  • 18
  • 28
4
votes
2 answers

How to disable screen updating for another application (notepad)

I have written a macro in vba, which opens a text file with notepad, selects all txt and copies it to Excel. I have to process about 100 files daily in this way and I want to spare the flashing images that I observe. The code is working but the…
Badan
  • 248
  • 1
  • 10
4
votes
2 answers

How do text editors store data above 1 byte?

The basic question is, how does notepad (or other basic text editors) store data. I ran into this because I was trying to compare file size of different compression techniques, and realized something isn't quite right. To elaborate.. If I save a…
qoou
  • 155
  • 8
4
votes
4 answers

Notepad Path in VS2008

In my application, I have defined the following: public static readonly string NOTEPAD = "%windir%\\notepad.exe"; I can type in the text value of NOTEPAD into the Run command on my Win7 machine, and Notepad will open. However, from within my Visual…
user153923
4
votes
1 answer

Can a java program "type" into another windows program like notepad

is there anyway to type into a notepad.exe process from a JAVA process?
Pablo
  • 41
  • 1
  • 2
4
votes
2 answers

JTextarea not growing vertically using miglayout

This is the code for a simple notepad in swing using miglayout.I have used span and grow to fill the horizontal space but fill and grow are not working as row constraints.Why? I want the textarea to fill all the available space in it's both minimum…
crazy4
  • 135
  • 1
  • 2
  • 10
4
votes
1 answer

Can I open Notepad.exe from C# with "Find" option opened?

I created a Window form C# application which opens a Notepad.exe using command: System.Diagnostics.Process.Start("notepad.exe", w_file); But I want to open the Notepad with option "Edit-Find" and put some value into the "Find" field. Is it…
Zalek Bloom
  • 551
  • 6
  • 13
4
votes
3 answers

Python Strange Characters Appear when Write Out to a Text File

I have a simple code over here that should output 2 columns of characters in a text file. infile = open('anything.txt', 'r') outfile = open('some.txt', 'w') f = infile.readlines() data=[] a=['1','2','3'] b=['5','6','7'] for i in a: for j in b: …
Poker Prof
  • 169
  • 5
  • 15
1 2
3
52 53