Loading data in R script freezes

Whenever I try to run the following code: mydata <- read.table(file=file.choose(), header=TRUE, dec=",") in a new R script, it opens documents but then freezes everytime. I tried it on the 3.5.1 and 3.3.3 version for Mac. What can I do to solve this problem and how is this caused?

Thank you