Language question -- file = variable ?

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Tue Aug 16 14:41:24 UTC 2011


Hi all,

Is there a language which (natively or not) treats a filename like a variable in memory?  For example, to increment a counter stored in a file, you would write something like
        /tmp/counter = /tmp/counter + 1
which involves both read and write to a file.  If it were normal variable, then it would involve read/write to a memory instead.

Python is the closest I can think of.  But, you need to create a method for read and another method for write.  And, typing more verbose than I would like.

-- 

William
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list