This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//method 1 txt to grid | |
private void Form1_Load(object sender, EventArgs e) | |
{ | |
var lines = File.ReadAllLines(@"D:\Nisar\workspace\biometric\backup data\ASL_001.TXT"); | |
if (lines.Count() > 0) | |
{ | |
foreach (var columnName in lines.FirstOrDefault() | |
.Split(new[] { '\t' }, StringSplitOptions.RemoveEmptyEntries)) | |
{ | |
dataGridView1.Columns.Add(columnName, columnName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//call console application form asp.net | |
//------------------------------------- | |
string path = HttpContext.Current.Server.MapPath("~/bin/txtProcessor.exe"); | |
ProcessStartInfo info = new ProcessStartInfo(path,""); | |
Process p = new Process(); | |
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; | |
p.StartInfo = info; | |
p.Start(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//argment in console application | |
//1. first you need to use third party dll or code | |
// NDesk.Options | |
//2. second you can use it as | |
using System; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Options.cs | |
// | |
// Authors: | |
// Jonathan Pryor <[email protected]> | |
// | |
// Copyright (C) 2008 Novell (http://www.novell.com) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining | |
// a copy of this software and associated documentation files (the |
OlderNewer