bhavnicksm
bhavnicksm
MModular
Created by bhavnicksm on 9/17/2023 in #questions
How do I open files to read/write in Mojo?
I want to do the equivalent of the following Python code:
with open(file.txt, 'r') as file:
x = file.read()
with open(file.txt, 'r') as file:
x = file.read()
How can I do this?
30 replies