Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication3
- {
- class Program
- {
- static void Main()
- {
- string input = @"c:temptest.txt";
- Cawk.Execute(input);
- }
- }
- }
- using System;
- using System.Collections.Generic;
- using System.IO;
- namespace ConsoleApplication3
- {
- public static class Cawk
- {
- public static IEnumerable<Dictionary<string, object>> Execute(StreamReader input)
- {
- Dictionary<string, object> row = new Dictionary<string, object>();
- string line;
- //string[] lines = File.ReadAllLines(path);
- //read all rows
- while ((line = input.ReadLine()) != null)
- {
- Cawk.Execute(new StreamReader(@"c:temptest.txt"))
- using (var sr = new StreamReader(@"c:temptest.txt"))
- {
- Cawk.Execute(sr);
- }
- var sr = new System.IO.StreamReader(@"c:temptest.txt");
- Cawk.Execute(sr);
- Cawk.Execute(File.OpenText(@"c:temptest.txt"));
- string input = @"c:temptest.txt";
- Cawk.Execute(new System.IO.StreamReader(input));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement