Add Master files.

This commit is contained in:
2024-11-22 19:33:00 +01:00
parent de735fcda6
commit ef080a96b2
7 changed files with 304 additions and 0 deletions

17
ledit.py Normal file
View File

@@ -0,0 +1,17 @@
"""
LEdit, a single line text editor made in Python
Version: 0.0.2-alpha1
Made as an example program for PyNVOS
"""
class ledit:
def __init__(self, instance):
self._kernel = instance
def prgm(self):
path_to_file = input("Enter location of file to edit/create: ")
path_to_file = self._kernel.fs(path_to_file)
with open(path_to_file, "a+") as f:
text_to_write = input("Line: ")
f.write(text_to_write + "\n")
f.close()
exit()
if __name__ == "<run_path>":