Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gurikbal authored Feb 13, 2019
1 parent 2f5973a commit 5252731
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 9 deletions.
Binary file modified Remove dup lines/Remove dup lines.suo
Binary file not shown.
12 changes: 3 additions & 9 deletions Remove dup lines/Remove dup lines/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
using System.IO;
using System.Text;
using System.Linq;
using System.Drawing;
using System.Threading;
using System.Collections;
using System.Windows.Forms;
using System.ComponentModel;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using NppPluginNET;

namespace Remove_dup_lines
Expand Down Expand Up @@ -56,13 +50,13 @@ internal static void myMenuFunction()
using (StringWriter writer = new StringWriter())
{
string line;
int x = 1000000000;
int x = 1;
while((line = reader.ReadLine()) != null)
{
x += 1;
if (string.IsNullOrEmpty(line.Trim()))
{
line = Regex.Replace(line, "", "3f5456cfsd661lld3334349j55kkk" + x);
line = Regex.Replace(line, "", "3f5456cfsd661lld3334349j55kkk000000000000000000000000000000000000jgggggjyyyyyy" + x);
}
writer.WriteLine(line);
}
Expand All @@ -78,7 +72,7 @@ internal static void myMenuFunction()
string linek;
while ((linek = readerr.ReadLine()) != null)
{
string uu = Regex.Replace(linek, "^3f5456cfsd661lld3334349j55kkk.*$", "");
string uu = Regex.Replace(linek, "^3f5456cfsd661lld3334349j55kkk000000000000000000000000000000000000jgggggjyyyyyy.*$", "");
writerr.WriteLine(uu);
}
outputStrin = writerr.ToString();
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 5252731

Please sign in to comment.