).split("\n");
					rows.slice(0, rowCount).forEach(rowText => {
						var row = document.createElement("tr");
						var cols = rowText.split(",");
						cols.forEach(colText => {
							var col = document.createElement("td");
							col.innerText = colText;
							row.appendChild(col);
						});
						table.appendChild(row);
					});
				})
				.catch(error => console.error(error));
		}

		document.getElementById("load-btn").addEventListener("click", function () {
			var fileName = document.getElementById(