Sorry for the extremely basic question, but: how do you read in a text file in gnu apl? I'm trying to do this year's advent of code in APL, but I'm stuck at the first hurdle (loading a text file of numbers).
I'm looking at this documentation: https://www.gnu.org/software/apl/apl.html#Section-2_002e26 Closest I have is: Zh←⎕FIO[ 3] 'day1raw.txt' Zh which prints 7 for some reason, 7 isn't even the first character in the file.
I'm not sure if I'll go for speed running or give more meaningful programs, but I'll make an edit to aplwiki if I decide to collect my answers. (Still fighting with school's ARM assembly project tonight)
> Write a function that calculates and returns the areas of 0 or more pie slices. The left argument is 0 or more angles (in degrees). The right argument is 0 or more pie diameters.