Hi, I'm trying to erase 1 line in a text file, is it possible?
For example, if my text file is like below.
abc 123 456 789;
def 123 456 789;
ghi 123 456 789;
Is it possible to just erase last line which is "ghi 123 456 789;" ?
How to delete 1 line in a text file?
Hi, I'm trying to erase 1 line in a text file, is it possible?
For example, if my text file is like below.
abc 123 456 789;
def 123 456 789;
ghi 123 456 789;
Is it possible to just erase last line which is "ghi 123 456 789;" ?
@cuinjune Hi, try using [msgfile]. You can send it a message [delete( to erase the current line, but you can also search for specific lines. It's a very powerful object, so I imagine it will be useful for you.
Take care,
Gilberto
Thank you so much
In pd vanilla, you can use [text]
[text]?
Yes, [text] in Pd 0.46 vanilla
Hey that's a new one.
I've only knew [textfile].
I really don't understand how to use text.
Could you please teach me how to write and read a text file using [text]?
For example, how can you do the job I described above?
Hi,
[text] is a new object in Pd-vanilla v0.46. Check the help file for details.
Does [text] also run in libpd?
Oops! Looks like something went wrong!