What file name convention should I use when uploading a text file of Objectscript on an Apple mac?
Hi,
I have an Atelier question.
I have a routine developed in Studio to upload a tab-delimited text file to process using Objectscript into Cache.
In Windows, to upload the file “test.txt”, I used the Objectscript commands,
Set uploadfilename = “c/testdata/RNAseq/GDC download 11-19-17/GDC download 11-19-17 counts/GDC download 11-19-17 unzipped/test.txt”
set file = ##class(%Stream.FileCharacter).%New()
set file.Filename = uploadfilename ; pass in the file name of the file you want to open.
How should this be done on a mac?
Should I use the UNIX,
Set uploadfilename = “\Users\peterpiper\Desktop\testdata\RNAseq\GDC download 11-19-17\GDC download 11-19-17 counts\GDC download 11-19-17 unzipped\test.txt”
Or, the mac OS style,
Set uploadfilename ="Macintosh HD:Users:robertharris:Desktop:testdata:RNAseq:GDC download 11-19-17:GDC download 11-19-17 counts:GDC download 11-19-17 unzipped:test.txt”
Or something else to upload a text file into Cache using %Stream.FileCharacter?
Thanks,
Bob Harris