How to resolve the algorithm File modification time step by step in the NewLISP programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm File modification time step by step in the NewLISP programming language

Table of Contents

Problem Statement

Get and set the modification time of a file.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm File modification time step by step in the NewLISP programming language

Source code in the newlisp programming language

;; print modification time
(println (date (file-info "input.txt" 6)))

;; set modification time to now (Unix)
(! "touch -m input.txt")


  

You may also check:How to resolve the algorithm Sierpinski triangle/Graphical step by step in the J programming language
You may also check:How to resolve the algorithm Non-continuous subsequences step by step in the PowerShell programming language
You may also check:How to resolve the algorithm Natural sorting step by step in the Ruby programming language
You may also check:How to resolve the algorithm Spiral matrix step by step in the Groovy programming language
You may also check:How to resolve the algorithm Conditional structures step by step in the PHL programming language