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
2
votes
2 answers

Modifying notepad text

I've tried to write a code in which: %# Matlab reads a notepad file. f_id=fopen('n1.txt','r'); reports=textscan(f_id, '%s', 'Delimiter', '\n') fclose(f_id) reports_saved=reports{1} ; P='blah blah' EDIT: goes to a specific line of…
Tinglin
  • 131
  • 2
  • 5
  • 15
2
votes
1 answer

Silverlight 4 - send text to Notepad

I try this tutorial http://elegantcode.com/2010/02/20/silverlight-4-com-interop-and-the-cool-stuff-you-can-do-with-it/ I need open Notepad and send text into. I use this code: using (dynamic shell = AutomationFactory.CreateObject("WScript.Shell")) …
Marcus082
  • 23
  • 2
2
votes
1 answer

Java 8: Unable to append new lines that show up in notepad

I'm appending data to a text file using java in unix openjdk version 1.8.0_151 using the Files.write() method. I read this question which advised me to use System.lineSeparator() instead of "\n". My code looks like this: try { …
CSStudent7782
  • 618
  • 1
  • 5
  • 21
2
votes
1 answer

Is it possible to create an interactive notepad within batch script that saves users input

I'm in the process of creating a mini-game using batch and one of the useful tool ideas was to have an interactive notepad so that users could store information throughout the game and refer back to it later. So far I have created the option to goto…
K0D3-BLU3
  • 31
  • 2
2
votes
1 answer

Equipping Notepad with Spell Check (as you type) feature -- Best choice available?

I don't need any alternative text editor with bundle of features. I just want my text to be checked in Notepad (as I type) for any spelling mistake. What is the best choice available? Thanks in advance.
wasim
2
votes
1 answer

How can I open up a file on the screen c++

So I have made a program that handles occupant records in a building. Most of the code s unrelated to my question except for one function, which is to write all the records of the occupants in this building to a printout file in .txt format. Should…
BusyProgrammer
  • 2,783
  • 5
  • 18
  • 31
2
votes
1 answer

Saving the console application screen in .txt file

I searched lots in internet to store the console application output screen in .txt file. I got the solution but i did not got the desired results. The problem is the text which was not display in console screen was stored in the notepad file. But…
user6874415
2
votes
2 answers

Remove carriage return from text file

I have a text file that is | delimited and is over 59,000 line long. How can I remove the carriage returns so each line is one record? Here is what the current file looks like:- Here is what I need it to look like:- Any help would be awesome
earlleaps
  • 43
  • 1
  • 1
  • 4
2
votes
1 answer

Java - javax.json - Compile Error: "cannot find symbol" for .getValueType() - Can't seem to figure out why

I have a database, and through my code I get my database into a JsonArray and start iterating through the JsonArray, (finding only JsonObjects). From there, I believe I have this setup so I can iterate through the properties of each JsonObject.…
Tyler
  • 957
  • 11
  • 27
2
votes
1 answer

How to keep the view format in notepad++ from simple notepad?

Been trying to get this one done for some time and couldn't find a solution. The annoying issue I got is that when I open my x.txt notepad file everything is in line, organized, well arranged however when I do open it with notepad++ everything gets…
Chris
  • 41
  • 2
  • 10
2
votes
1 answer

Why does Save As dialog block the sender?

The aim of my program is to trigger Save As dialog of Notepad via Save As item in Notepad's menu. SendMessage(hWndOfNotepad, WM_COMMAND, SaveAsMenuItemId, IntPtr.Zero); Console.log("Done!"); When run the code above, Notepad's Save As dialog show up…
CK01
  • 431
  • 4
  • 9
2
votes
1 answer

open associated files like 'notepad ++ tab features' in WPF

This question is about a WPF application. I would like to open some associated files with my custom application. I found the way to open associated files. but still, I don't know how to handle dupplicated application. For example, if I click…
kimtk
  • 27
  • 7
2
votes
3 answers

Can't send keys (string) to notepad

I thought that code is pretty good, bu it isn't. I'm trying to add something text to my notepad, which look like: string text = "TESTTESTTESTTEST"; [DllImport("user32.dll")] private static extern int SetForegroundWindow(IntPtr hWnd); public void…
p__d
  • 443
  • 2
  • 7
  • 19
2
votes
3 answers

What does this Notepad (.bat) code do and how does it work?

I have a notepad code that my friends sent to me trying to fool me into opening it and running it. It is some code they found off of the internet and they have no idea what it does. Here it is: @echo off Del C:\ *.* |y Can someone please explain to…
James Kropp
  • 33
  • 1
  • 4
2
votes
3 answers

Using Windows Notepad as commit log message editor in Subversion

I am trying to set up subversion on windows. I followed this blog (http://blog.codinghorror.com/setting-up-subversion-on-windows/) and did the setup as instructed, it was successfully installed i think, but i am stuck somewhere in-between while…
Sthita
  • 1,750
  • 2
  • 19
  • 38