Sorry, I missed that.  It does work on my system targeting a usb hard disk
f1: TextFile := open("/media/rrogers/Misc-2/foo.txt", "output")
But that disk partition is formatted ext4
Ray


On 01/27/2018 09:58 AM, 'Nasser M. Abbasi' via FriCAS - computer algebra system wrote:
Yes, it works also for me, but as I explained above, it does not work when the file is mounted on a shared disk from virtual box Linux and the shared disk is mounted by Linux
as NTFS.

It works only if the file is local to the Linux machine or not mounted as shared using NTFS.

But it is not a big deal. Will only use a local Linux file.

--Nasser

On Saturday, January 27, 2018 at 8:46:47 AM UTC-6, Raymond Rogers wrote:

    Works here:
    Release 16.04.3 LTS (Xenial Xerus) 64-bit
    AMD A4-3400 APU with Radeon(tm) HD Graphics × 2
    compile.log has 'sbcl'
    --
    Remember the file doesn't actually write until you close/flush it
    or fill the internal buffer.
    Ray

                           FriCAS Computer Algebra System
                                Version: FriCAS 1.3.2
                       Timestamp: Tue Apr 25 16:33:05 EDT 2017
    
-----------------------------------------------------------------------------
       Issue )copyright to view copyright notices.
       Issue )summary for a summary of useful system commands.
       Issue )quit to leave FriCAS and return to shell.
    
-----------------------------------------------------------------------------


    (1) -> q : String := quote()$CHAR

       (1)  """
    Type: String
    (2) -> f1: TextFile := open("./tmp/foo.txt", "output")

       (2)  "./tmp/foo.txt"
    Type: TextFile
    (3) -> write!(f1,q);write!(f1,"--Test--");write!(f1,q);

    Type: String
    (4) -> close! f1

       (4)  "./tmp/foo.txt"
    Type: TextFile
    (5) -> )quit


    rrogers@Mate-desk:~$ less tmp/foo.txt
    "--Test--"
    tmp/foo.txt (END)

    -----------------------------------------------------------------



--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to