def read_proc_files(proc):
	"""
	Read file properties from a process.
	:param proc: An object representing a running process.
	:return file_details: a list containing process details.
	"""
	file_details = []
	for handle in proc.open_files():
		handle_items = {}
		handle_items['fd'] = getattr(handle, 'fd', None)
		handle_items['path'] = getattr(handle, 'path', None)
		handle_items['position'] = getattr(
		handle, 'position', None)
		handle_items['mode'] = getattr(handle, 'mode', None)

		file_details.append(handle_items)

	return file_details