Search found 16 matches

by larry316
Thu Jan 19, 2017 9:15 pm
Forum: New to Dyalog?
Topic: Enter APL Symbols
Replies: 12
Views: 44090

Re: Enter APL Symbols

We would certainly recommend using the Dyalog Editor, rather than the APL line editor, and we would also recommend that you use the Editor in conjunction with the Tracer; the ability to step through your code, and edit in on the fly makes developing code much easier and quicker! There are many ...
by larry316
Sun Jan 08, 2017 5:30 pm
Forum: New to Dyalog?
Topic: Read & write txt files
Replies: 10
Views: 36260

Re: Read & write txt files

Hi Larry, The easiest way to write text to a file is to use ⎕NPUT: (⊂'This is some text',(⎕UCS 13 10),'2nd line')⎕NPUT'c:\temp\sometext.txt' You can supply the text as a vector of vectors, or as a simple vector with embedded newlines (as above). Note that you need to enclose the text because you COU ...
by larry316
Sun Jan 08, 2017 5:05 pm
Forum: New to Dyalog?
Topic: Read & write txt files
Replies: 10
Views: 36260

Re: Read & write txt files

Hi Larry, The easiest way to write text to a file is to use ⎕NPUT: (⊂'This is some text',(⎕UCS 13 10),'2nd line')⎕NPUT'c:\temp\sometext.txt' You can supply the text as a vector of vectors, or as a simple vector with embedded newlines (as above). Note that you need to enclose the text because you COU ...
by larry316
Tue Jan 03, 2017 3:17 pm
Forum: New to Dyalog?
Topic: Read & write txt files
Replies: 10
Views: 36260

Re: Read & write txt files

is it possible to create a variable in Dyalog containing /home/brian and then using ⎕SH to use Linux? Example: ⎕SH'ls -l variable' You could write that as: ⎕SH 'ls -l ''',variable,'''' The above creates an array of characters where the contents of (variable) have been surrounded by single quotes, an ...
by larry316
Mon Jan 02, 2017 7:09 pm
Forum: New to Dyalog?
Topic: Read & write txt files
Replies: 10
Views: 36260

Re: Read & write txt files

You can call a Linux program using the system function ⎕SH with a Linux command as the right argument. Any output from the command should be returned as the result: ⎕SH'ls -l /home/brian' total 152 -rw-r--r-- 1 root root 89140 Dec 6 16:34 default.dlf drwxr-xr-x 2 brian brian 4096 Nov 30 04:59 Des ...
by larry316
Tue Dec 20, 2016 1:19 pm
Forum: New to Dyalog?
Topic: Read & write txt files
Replies: 10
Views: 36260

Re: Read & write txt files

This is my goal. I would use APL to create a file in the abc language which is
basically a character file and then use a linux program which I downloaded. The program converts it to a midi file I would then use VLC media player or Banshee to
listen to the midi file.
by larry316
Mon Dec 19, 2016 9:11 pm
Forum: New to Dyalog?
Topic: Read & write txt files
Replies: 10
Views: 36260

Re: Read & write txt files

Thanks for the help. There is a program in linux that I would like to use. Is there an APL command I could use which will use the linux program and the txt file I made with ⎕NPUT?
by larry316
Sun Dec 18, 2016 3:15 pm
Forum: New to Dyalog?
Topic: Read & write txt files
Replies: 10
Views: 36260

Read & write txt files

I read the help file but I am not sure how I can create a txt file, write and then read a txt file.
by larry316
Wed Dec 14, 2016 3:07 pm
Forum: New to Dyalog?
Topic: Places to start
Replies: 7
Views: 108423

Re: Places to start

I was looking at APL Wiki and found the Convex Hull Algorithm. Being a newcomer to
dyalog I am not sure how I can implement the D function. Can you provide some help?
by larry316
Wed Dec 14, 2016 2:06 pm
Forum: New to Dyalog?
Topic: sound in APL
Replies: 26
Views: 88569

Re: sound in APL

Did you ever find a solution with just using linux?