将每一行另存为单独的.txt文件

use*_*545 2 notepad++

我该如何保存在记事本中

文件名:Original.txt:

soandso@hotmail.com
emailnumber2@hotmail.com
emailnumber3@hotmail.com
Run Code Online (Sandbox Code Playgroud)

-在您的帮助下-

档名:1.txt

soandso@hotmail.com
Run Code Online (Sandbox Code Playgroud)

档名:2.txt

emailnumber2@hotmail.com
Run Code Online (Sandbox Code Playgroud)

档名:3.txt

emailnumber3@hotmail.com
Run Code Online (Sandbox Code Playgroud)

Phi*_*hil 5

我将为此编写一个简单的PowerShell脚本:

$counter = 1

Get-Content "myfile.txt" | foreach {
    Set-Content -Path "$counter.txt" -Value $_
    $counter++
}
Run Code Online (Sandbox Code Playgroud)

我不知道任何特定于notepad ++的解决方案,因为我不使用它,但是我敢打赌,有一种方法可以从任何程序员友好的文本编辑器中运行PowerShell脚本。