how to modify a file. txt
Mostra commenti meno recenti
Hello,
I would like some advice from someone to do this job: I have to copy the lines of a text file to an another text file created by me until it comes from a certain string. Arrived at this string, I stop copying and I have to insert at the end of these copied lines other lines of text coming from a third .txt file
Thanks in advance for the advice
3 Commenti
Mathieu NOE
il 28 Ott 2022
Modificato: Mathieu NOE
il 28 Ott 2022
hello
what have you tried so far ?
if you don't know where to start from look for how processing strings and char array
like
MR
il 28 Ott 2022
Hi,
does this help you?
% Open file
file = fopen('myFile.txt', 'w');
% Write text into my txt file which I just created
fprintf(file, 'My own Text goes here.');
Federico Paolucci
il 28 Ott 2022
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Text Files in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!