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...
Color Dark and Linear Dark are two effective blending modes that are similar to the Multiply blending mode but produce effects that are subtly different.
Answer the following statement true (T) or false (F)
A file that keeps track of the pictures, videos, and other files you have imported is called a(n):
A) Report B) Movie C) Export D) Project
If you have two columns of text and want to change to one column on the same page, insert a(n) ________ section break
A) Next Page B) Continuous C) Even Page D) Column
A(n) ____________________ statement names a variable and specifies the data type that can be stored in it.
Fill in the blank(s) with the appropriate word(s).