rendered paste body/*Project: YASS - Yet Another Scripting SystemVersion: 0.1Author: Emanuel Claesson (emanuel.claesson@gmail.com)Licence: GNU General Public Licence (GPL)OS: Windows Only (Currently)*//* C++ Header Files */#include <iostream>#include <stdio.h>#include <fstream>#include <string>#include <conio.h>/* *//* Namespace(s) */using namespace std;/* *//* Variable Declaring */bool debug = 0;bool quit = 0;int line = 0;/* *//* Functions *//* */int main(int argc, char *argv[]){ cout << argv[0] << argv[1] << argv[2] << endl;/* if(argv[1] == "-d") { debug = 1; cout << "DEBUG!" << endl; } */ifstream filevar;string file;file = argv[argc-1];string file2;file2 = file; const char* filen; filen = file.c_str();int a;a = file.length();a = a - 5;file.erase( 0, a ); if(file != ".yass"){ cout << "ERROR: Couldn't read file! REASON: " << file2 << " isn't a valid .yass file!" << endl; system("pause"); return 0;}filevar.open(filen);/* Main Read-loop */while(quit == 0){line++;string s;getline(filevar, s);}cin.get();return 1;}