-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
43 lines (23 loc) · 937 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//============================================================================
// Name : main.cpp
// Author : Brayan Almonte
// Version : 1.0
// Copyright : You are free to use this code for whatever you need.
// Description : Reads from a log file and outputs data from desired column on a separate file.
// Note that the format of the file needs to be specified in the source file.
//============================================================================
// -------------------------includes------------------------------------------
//My Includes
#include "TextParser.h"
using namespace std;
Parser Parse;
//-----------------------functions-------------------------------------------
int main() {
setbuf(stdout, NULL);
string filename;
string fieldname;
cout << "Enter Filename and Field name: ";
cin >> filename >> fieldname ;
Parse.readColumn(filename, fieldname);
return 0;
}