File size: 283 Bytes
2621d77
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
def openFile(file):
  with open(file) as f:
    openFile = f.read()
  return openFile

def openJsonFile(file):
  import json
  # Opening JSON file
  with open(file, 'r') as openfile:
    # Reading from json file
    json_object = json.load(openfile)
  return json_object