diff --git a/04/ex2/ft_stream_management.py b/04/ex2/ft_stream_management.py new file mode 100644 index 0000000..3f9d33a --- /dev/null +++ b/04/ex2/ft_stream_management.py @@ -0,0 +1,21 @@ +import sys + + +def communication_system() -> None: + print("=== CYBER ARCHIVES - COMMUNICATION SYSTEM ===") + sys.stdout.write("\nInput Stream active. Enter archivist ID: ") + archivist_id = input() + sys.stdout.write("Input Stream active. Enter status report: ") + status_report = input() + sys.stdout.write( + f"\n[STANDARD] Archive status from {archivist_id}: {status_report}\n" + ) + sys.stderr.write( + "[ALERT] System diagnostic: Communication channels verified\n" + ) + sys.stdout.write("[STANDARD] Data transmission complete\n") + print("\nThree-channel communication test successful.") + + +if __name__ == "__main__": + communication_system()