How to write time stamp to a specific cell in csv file
3 次查看(过去 30 天)
显示 更早的评论
I have a csv file that I read and write to it. I need to "stamp" the date and time last accessed.
Couldn't find a simple example.
Assuming I defined,
dt=datestr(now,'mmmm dd,yyyy HH:MM:SS AM'),
I wouldlike to store dt into the csv file on cell F1
Thanks
0 个评论
采纳的回答
Cris LaPierre
2022-1-4
I believe that is not an option with a csv file. They are text files, so don't have cells or ranges. It may be possible with a spreadsheet. See this example of writing to a specific range of a spreadsheet.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!