Human: Write me a Python program to get rid of space of a line from a file. Assistant: 
Here is a Python program to get rid of space of a line from a file

import os

def remove_space(line):
    """
    remove space of a line from a file
    """
    return line.replace(' ', '')

# Enter the string
line = "This is a line with space"

# Calling the function
print((remove_space(line)))

#Example Output
# Thisisalinewithspace

#Remember to inspect code for bugs.