I know this is a simple question but I am unable to find an answer to it. My line of code is below:
Code: Select all
replace line 3 to line 4 of URL ("binfile:/mnt/sdcard/Temp.van") with ""
Many Thanks,
Googie.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
replace line 3 to line 4 of URL ("binfile:/mnt/sdcard/Temp.van") with ""
Code: Select all
put empty into line 3 to 4 of url ("file:" & theFilePath)
Not sure which statement you mean, but this one does the whole job:FourthWorld wrote: ↑Mon May 07, 2018 9:20 amThat statement reads a file from disk, gets a segment of it, and then does nothing.
If you want to change the file on disk you'll need to write to it too.
Code: Select all
put empty into line 3 to 4 of url ("file:" & theFilePath)
Thanks. In retrospect, I can see I was distracted by a related question elsewhere.jacque wrote: ↑Mon May 07, 2018 8:23 pmNot sure which statement you mean, but this one does the whole job:FourthWorld wrote: ↑Mon May 07, 2018 9:20 amThat statement reads a file from disk, gets a segment of it, and then does nothing.
If you want to change the file on disk you'll need to write to it too.
URLs act as containers, so the read/write sequence completes.Code: Select all
put empty into line 3 to 4 of url ("file:" & theFilePath)
I'm not quite sure, the actual problem wasn't defined. The issue of line endings is relevant, as well as alternate syntax for emptying lines, but it isn't clear what exactly went wrong in the original post.Then what was the issue here?