Full Code of JeL0998/readFile for AI

main 28e010a786e5 cached
3 files
2.6 KB
825 tokens
4 symbols
1 requests
Download .txt
Repository: JeL0998/readFile
Branch: main
Commit: 28e010a786e5
Files: 3
Total size: 2.6 KB

Directory structure:
gitextract_z3c0mg96/

├── grade.txt
├── tab.txt
└── week13Project.cpp

================================================
FILE CONTENTS
================================================

================================================
FILE: grade.txt
================================================
AH112 3 2.25	
AH111 3 2.75	
ITCC113 5 1.25	
ITPC111 5 1.75	
NSTP2 0 1.25	
PE112 2 2.00	
RE112 3 2.75	
SDS2 1 1.25

================================================
FILE: tab.txt
================================================
MidTerm Grade of Jan Eric Lonario - BSIT 1 SY 2020-2021
Computer Studies Department

Subject Code        Units          Grade
====================================================================
AH112               3              2.25	

AH111               3              2.75	

ITCC113             5              1.25	

ITPC111             5              1.75	

NSTP2               0              1.25	

PE112               2              2.00	

RE112               3              2.75	

SDS2                1              1.25

====================================================================

GPA: 0


================================================
FILE: week13Project.cpp
================================================
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>

using namespace std;

char name[100];
char course[100];
char year[100];
string strNew(string str, int n);

void border();
void output();

int main()
{
	string subject, grade, units;
	string line;
	int total = 0;
	double totalunits = 0;
	double gpa = 0.0;

	ifstream theFile("grade.txt");
	ofstream outFile("tab.txt");

	output();

	outFile << "MidTerm Grade of Jan Eric Lonario - BSIT 1 SY 2020-2021";
	outFile << "\nComputer Studies Department\n\n";
	outFile << strNew("Subject Code", 20) << strNew("Units", 15) << "Grade" << endl;
	outFile << "====================================================================";

	border();

	if (theFile.is_open())
	{

		while (getline(theFile, line))
		{
			stringstream ss(line);
			getline(ss, subject, ' ');
			getline(ss, units, ' ');
			getline(ss, grade, ' ');
			cout << strNew(subject, 20) << strNew(units, 15) << grade << endl << endl;
			outFile << endl;
			outFile << strNew(subject, 20) << strNew(units, 15) << grade << endl;
		
			total = stoi(grade) * stoi(units);
			totalunits = totalunits + stoi(units);
			gpa = total / totalunits;
		}
	}

	border();
	outFile << endl;
	outFile << "====================================================================";
	outFile << endl;
	cout << "\nGPA: " << gpa << endl;
	outFile << "\nGPA: " << gpa << endl;
	theFile.close();
	outFile.close();

	system("pause");
	return 0;
}


void output() {

	cout << "MidTerm Grade of Jan Eric Lonario - BSIT 1 SY 2020-2021";
	cout << "\nComputer Studies Department\n\n";
	cout << strNew("Subject Code", 20) << strNew("Units", 15) << "Grade" << endl;

}

void border()
{
	cout << "==========================================================================" << endl;
}


string strNew(string str, int n) {
	int l;
	l = n - str.length();
	for (int i = 1; i <= l; i++) {
		str = str + " ";
	}
	return str;
}

Download .txt
gitextract_z3c0mg96/

├── grade.txt
├── tab.txt
└── week13Project.cpp
Download .txt
SYMBOL INDEX (4 symbols across 1 files)

FILE: week13Project.cpp
  function main (line 16) | int main()
  function output (line 69) | void output() {
  function border (line 77) | void border()
  function string (line 83) | string strNew(string str, int n) {
Condensed preview — 3 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3K chars).
[
  {
    "path": "grade.txt",
    "chars": 113,
    "preview": "AH112 3 2.25\t\nAH111 3 2.75\t\nITCC113 5 1.25\t\nITPC111 5 1.75\t\nNSTP2 0 1.25\t\nPE112 2 2.00\t\nRE112 3 2.75\t\nSDS2 1 1.25"
  },
  {
    "path": "tab.txt",
    "chars": 607,
    "preview": "MidTerm Grade of Jan Eric Lonario - BSIT 1 SY 2020-2021\nComputer Studies Department\n\nSubject Code        Units          "
  },
  {
    "path": "week13Project.cpp",
    "chars": 1914,
    "preview": "#include <iostream>\n#include <fstream>\n#include <string>\n#include <sstream>\n\nusing namespace std;\n\nchar name[100];\nchar "
  }
]

About this extraction

This page contains the full source code of the JeL0998/readFile GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 3 files (2.6 KB), approximately 825 tokens, and a symbol index with 4 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!