I'm having this error when I try to output out a gene expression data frame

Error in file(file, ifelse(append, "a", "w")) :
        unable to open connection
In addition: Warning message:
cannot open file 'SAMPLES.txt'

when issuing the command:

write.table(SAMPLES, file = "SAMPLES.txt")


write.table(SAMPLES)

will work fine, but when I specify a location it gives me the above error

	[[alternative HTML version deleted]]


