How to cancel a character or string in a file!

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
masbaldi
Posts: 14
Joined: 04 Nov 2009 12:20

How to cancel a character or string in a file!

#1 Post by masbaldi » 13 Jun 2013 14:21

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!

User avatar
milos.vicentijevic
Posts: 965
Joined: 23 Apr 2013 08:09

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

#2 Post by milos.vicentijevic » 20 Aug 2013 13:24

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

Post Reply

Return to “mikroBasic PRO for PIC General”