Modify the changeLittle function to use readLine instead of read.
Note: The question refers to the “readline” method.
```
def changeLittle2(filename ,newString):
# Get the original file contents
programFile="littlePicture.py"
file = open(getMediaPath(programFile),"rt")
newFile = open(getMediaPath(filename),"wt")
line = file.readline()
while line <> '':
if "addText" in line:
#First double quote
firstQuote = line.find('"')
#Double quote after firstQuote
endQuote = line.find('"',firstQuote+1)
newLine = line[:firstQuote+1]+ newString +line[endQuote:]
newFile.write(newLine)
else:
newFile.write(line)
line = file.readline()
file.close()
newFile.close()
```
You might also like to view...
A USB ________ is a small storage device that plugs into your computer's USB port and usually holds large amounts of information
Fill in the blank(s) with correct word
Which of the following is true about VM hardware settings?
A. the default disk controller type is SATA B. the BIOS settings on a VM cannot be changed C. Hyper-V allows one logical processor per VM D. a SCSI controller cannot be used with a system disk