I was done with copying txt files and tried to do the same with jpg files. But I am constantly getting an encoding error.
My code is:

```
def fcopy(source, target):
data = ''
with open(source, encoding='Latin-1') as f:
    data = f.read()
    with open(target, 'w') as t:
            t.write(data)
fcopy("source.jpeg","dest.jpeg")

```

I tried using encoding = utf8 and utf16 also. But didn't work and error is as:

```
Traceback (most recent call last):
  File "C:/Users/Mark-II/Desktop/fileCopy.py", line 7, in <module>
    fcopy("source.jpeg","dest.jpeg")
  File "C:/Users/Mark-II/Desktop/fileCopy.py", line 3, in fcopy
    with open(source, encoding='Latin-1') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'source.jpeg'
>>> 

```

Please help.