O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
fname=input("Enter the Source File Name : ") pos=int(input("Enter the start index : ")) size=int(input("Enter the length to read no of char : ")) fp=open(fname,"r") fp.seek(pos) data=fp.read(size) print(data) fp.close()
▶ Run Code
🖥 Output: