Page 1 of 1

How to cancel a character or string in a file!

Posted: 13 Jun 2013 14:21
by masbaldi
Good evening to all!

I have a big problem. I don't know how to delete a string of character from an SD card.
I use mikroBasicPro ver.5.
For example, i have a TMP.TXT file with this string (all of them with the same length):

aaaaaa
bbbbbb
cccccc

and i would like to cancel the second row to obtain

aaaaaa
cccccc

How can i do?
Thank you for reply!

Re: How to cancel a character or string in a file!

Posted: 20 Aug 2013 13:24
by milos.vicentijevic
Hello masbaldi,

you will need to rewrite whole file after aaaaaa . That's the only way as far as I know.

Best Regards,
Milos Vicentijevic