notepad

Null Reference exception in C#

人走茶凉 提交于 2019-12-02 07:10:40
I'm experiencing "null reference exception" when I'm attempting to return a value from a structure. here is the code: AssetItem item = new AssetItem(); item = initModified(); bool found = false; int index = getIndex(barcode); string modifiedFile = filepath + "Modified\\" + dir + "\\" + index + ".asdt"; if(File.Exists(modifiedFile)) { using(StreamReader reader = new StreamReader(modifiedFile)) { string line = reader.ReadLine(); while(line.Trim()!="") { string[] split = line.Split(','); if(split[1]==barcode) { found = true; break; } line = reader.ReadLine(); } reader.Close(); } } if(found) {

Notepad++插件之TextFX

筅森魡賤 提交于 2019-12-02 06:08:53
Notepad++插件TextFX Characters是一款默认安装的插件,由于功能强大,被编程爱好者认为是最好的Notepad++插件,第二名是Light Explorer。但由于TextFX插件命令过多,而且没有汉化版,不容易理解,闪电博客特别介绍下几个常用命令功能: 1. 删除程序空行 选择相应的文本 点击TextFX —> TextFX Edit —> Delete Blank Lines 点击TextFX —> TextFX Edit —> Delete Surplus Blank Lines 2. 为代码增加行号 选择要增加行号的文本(选择时会提示“No text selected”) 点击TextFX —> TextFX Tools —> Insert Line Numbers 3. 删除程序行号或者首字 选择相应的文本 点击TextFX —> TextFX Tools —> Delete Line Numbers or First word 4. 整理xml文本格式。 这个功能不错,可以很快将一行文本整理成规范的xml文件。(这个功能用来处理blogger的xml文档很不错,我自己的文档经过无数次的编辑已经乱得不成样子,经过这样一整理,可读性大大提高。) 选中所有文本 点击TextFX—>HTML Tidy—>Tidy: Reindent XML

To Access Notepad, calculator through asp.net

≯℡__Kan透↙ 提交于 2019-12-02 05:59:43
I m trying to open Notepad, Calculator in button click in asp.net with code behind C#. I tried with the code System.Diagnostics.Process.Start("c:\\windows\\system32\\notepad.exe"); this is working fine in local system but not working in the Server. I even tried with the javascript function executeCommands(inputparms) { alert('ff'); var oShell = new ActiveXObject("Shell.Application"); var commandtoRun = "C:\\Winnt\\Notepad.exe"; if (inputparms != "") { var commandParms = document.form1.filename.value; } oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1"); } even this is not working

How to open a text file?

…衆ロ難τιáo~ 提交于 2019-12-01 14:45:31
I can't figure out for the life of me what is wrong with this program: import java.io.*; public class EncyptionAssignment { public static void main (String[] args) throws IOException { String line; BufferedReader in; in = new BufferedReader(new FileReader("notepad encypt.me.txt")); line = in.readLine(); while(line != null) { System.out.println(line); line = in.readLine(); } System.out.println(line); } } The error message says that the file can't be found, but I know that the file already exists. Do I need to save the file in a special folder? The error is "notepad encypt.me.txt" . Since your

Modelsim 的骚操作

大城市里の小女人 提交于 2019-12-01 12:44:08
1、modelsim关联第三方编辑器 打开modelsim安装目录下的…\tcl\vsim\pref.tcl文件,在关键字PrefSource前面添加设置外部编辑器的代码段,这里以notepad++为例,添加其他编辑器方式雷同: proc external_editor {filename linenumber} { exec "D:/Program Files/Notepad++/notepad++.exe" $filename } set PrefSource(altEditor) external_editor 如需恢复使用内部编辑器时,则删除该代码段。 2、notepad++调用vlog执行语法检查 打开notepad++编辑器,按F5打开cmd命令行,在命令窗口输入以下指令调用modelsim的vlog执行verilog语法检查,保存后设置相应的快捷方式,方便以后每次可以直接通过快捷方式在源文件上执行代码语法检查。 cmd /k cd "$(CURRENT_DIRECTORY)" & D:/modeltech64_10.7/win64/vlog.exe "$(FULL_CURRENT_PATH)" &ECHO.&PAUSE&EXIT 来源: https://www.cnblogs.com/151009-on-the-way/p/11686510.html

How to open a text file?

核能气质少年 提交于 2019-12-01 12:26:28
问题 I can't figure out for the life of me what is wrong with this program: import java.io.*; public class EncyptionAssignment { public static void main (String[] args) throws IOException { String line; BufferedReader in; in = new BufferedReader(new FileReader("notepad encypt.me.txt")); line = in.readLine(); while(line != null) { System.out.println(line); line = in.readLine(); } System.out.println(line); } } The error message says that the file can't be found, but I know that the file already

Navicat 导入,导出数据 etc

牧云@^-^@ 提交于 2019-12-01 12:06:16
Navicat 不仅做了分页查询, 显示 SELECT *,rowid "NAVICAT_ROWID" FROM "main"."Table_1004A" LIMIT 999000,1000 还自带数据 导入,导出 工具(支持多种格式) 导出csv, 100W个数据也才2min, 我很开心, 领导们很喜欢 用excel 打开数据(习惯问题, 筛选,隐藏等等 ), 随他们了, 导出也可以指定数据begin~ end, 比如10000W 可以分批次 , 每次1000W, Tips: csv 大文件,用notepad++ 用了内存映射,所以效率高,速度快 (win10 notepad 后面也会优化,但是目前还没有) 来源: https://www.cnblogs.com/scotth/p/11684787.html

如何将notepad++添加到右键快捷方式

╄→尐↘猪︶ㄣ 提交于 2019-12-01 09:00:25
1、点击开始菜单输入regedit打开注册表编辑器 2、在HKEY_CLASSSES_ROOT—* —Shell下,新建项命名为Open With Notepad++(注意*也是一个项) 3、在该新建项的右边窗口新建字符串值(右键--新建--字符串值)。名称:Icon;值:C:\program files (x86)\Notepad++\Notepad++.exe 【注:使用您自己的安装文件目录】。 4、在新建的项Open With Notepad++下面新建项Command(必须这个名称). 5、将刚新建的Command项右侧窗口的默认值,修改为:C:\program files (x86)\Notepad++\Notepad++.exe %1【注:使用您自己的安装文件目录】,这样就大功告成了。 (转自 https://blog.csdn.net/qq_40709468/article/details/89087938 ) 来源: https://www.cnblogs.com/pere/p/11674714.html

File exists in Windows Explorer and notepad, but is not accessable in my program

て烟熏妆下的殇ゞ 提交于 2019-12-01 08:12:58
Why does the following problem happen? Scenario : Make sure that IIS is installed Execute "notepad %WINDIR%\System32\inetsrv\config\applicationHost.config" using admin account Actual Result : the file is successfully opened in notepad Execute the following code in admin account's context: string filePath = @"%WINDIR%\System32\inetsrv\config\applicationHost.config"; Console.WriteLine(File.Exists(Environment.ExpandEnvironmentVariables(filePath))); Actual Result : False Expected Result : True The problem is if you are running a 32-bit application on a 64-bit OS, the .Net framework automatically

File exists in Windows Explorer and notepad, but is not accessable in my program

做~自己de王妃 提交于 2019-12-01 06:16:58
问题 Why does the following problem happen? Scenario : Make sure that IIS is installed Execute "notepad %WINDIR%\System32\inetsrv\config\applicationHost.config" using admin account Actual Result : the file is successfully opened in notepad Execute the following code in admin account's context: string filePath = @"%WINDIR%\System32\inetsrv\config\applicationHost.config"; Console.WriteLine(File.Exists(Environment.ExpandEnvironmentVariables(filePath))); Actual Result : False Expected Result : True