[seqfan] Re: Writing files in PARI v. 2.9.3?
Felix Fröhlich
felix.froe at gmail.com
Sat Jan 6 16:22:09 CET 2018
I am using Windows 10 64 bit. I tried several things as suggested above:
forprime(p=1, 20, write1(test, p, ", "))
-> write1: error opening output file: `test'.
forprime(p=1, 20, write1("test.txt", p, ", "))
-> write1: error opening output file: `test.txt'.
forprime(p=1, 20, write1("C:\Programme (x86)\Pari64-2-9-3\test.txt", p, ",
"))
-> write1: error opening output file: `C:Programme (x86)Pari64-2-9-3
est.txt'
forprime(p=1, 20, write1("C:\\Programme (x86)\\Pari64-2-9-3\\test.txt", p,
", "))
-> write1: error opening output file: `C:/Programme
(x86)/Pari64-2-9-3/test.txt
None of them seem to work, unfortunately.
Felix
2018-01-04 14:31 GMT+01:00 Iain Fox <iain.fox at pacbell.net>:
> Dear Felix,
>
> I believe you need to replace A123456 with "A123456.txt" including quotes.
> Hope this helps.
>
> Sincerely,
> Iain Fox
>
> --------------------------------------------
> On Thu, 1/4/18, Felix Fröhlich <felix.froe at gmail.com> wrote:
>
> Subject: [seqfan] Writing files in PARI v. 2.9.3?
> To: "Sequence Fanatics Discussion list" <seqfan at list.seqfan.eu>
> Date: Thursday, January 4, 2018, 3:01 AM
>
> Dear SeqFans,
>
> I recently updated my PARI version to
> 2.9.3. I used to be able to use a
> command like forprime(p=1, , if(is(p),
> write1(A123456, p, ", "))) to let
> PARI write the output to a file instead
> of the console. This worked well in
> my older PARI version, but with 2.9.3 I
> get an error:
>
> write1: error opening output file:
> 'A123456'.
>
> Does anybody know what the problem is
> here?
>
> Best regards
> Felix
>
> --
> Seqfan Mailing list - http://list.seqfan.eu/
>
>
> --
> Seqfan Mailing list - http://list.seqfan.eu/
>
More information about the SeqFan
mailing list