Read size of the file in Windows Server 2012
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kanchibhotla Chandra Sekhar
le 14 Août 2018
Commenté : Kanchibhotla Chandra Sekhar
le 20 Août 2018
I want to read the file size in windows server 2012. I have used the -
files_log = [ dir(fullfile(cd,'Matlab_log_file.txt'))];
which is working in the local pc but not in the windows server 2012. What is the best way to read the file size ?
0 commentaires
Réponses (1)
Jan
le 14 Août 2018
files_log = dir(fullfile(cd, 'Matlab_log_file.txt'));
(without the unneeded square brackets) is still the best and working code on every operating system and file system. So check twice, what is not working as expected, and post any details about this problem here. Maybe your current directory is not where you expect it to be.
1 commentaire
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!