Generation

translateMon, 02 Jan 2023

myfile = open(r'E:\poem.txt','r') str = myfile.read(30) print(str) str2 = myfile.read(50) print(str2) myfile.close()

StreamReader myfile = File.OpenText(r'E:\poem.txt'); string str = myfile.Read(30) Console.WriteLine(str) string str2 = myfile.Read(50) Console.WriteLine(str2) myfile.Close()

Want to kickstart your project?Use the new AI Studio to create your code