I'm trying to open a csv file using Python (Python 3.9.0, in VS Code, MacOS), using with open. The basic code I have is as follows:
import csv
import os
file_to_load = os.path.join("resources","original_file.csv")
with open(file_to_load) as starting_numbers:
print(starting_numbers)
The result I got was:
<_io.TextIOWrapper name='resources/original_file.csv' mode='r' encoding='UTF-8'>
The result I expected was:
<open file 'Resources/original_file.csv', mode 'r' at 0x[memory address]>
I came across this question from four years ago, but it doesn't seem to be directly related to my problem. I'm not currently trying to get a full readout of the file, just the memory allocation.