Add directory path to fopen
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Graur Alin
il 7 Lug 2015
Commentato: Azzi Abdelmalek
il 7 Lug 2015
I have this code:
name = strrep(name,' ','_');
date = strrep(date,' ','_');
FileName=[name '_' date '.txt'];
file=fopen(FileName,'wt');
it creates a text file with the name and date I get from some edittext box in GUI in the current folder.
Can I add a directory path to that so it creates the text file in another folder like: ../DB/filename.txt ?
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!