Code: Select all
open file rawdata
write the text of fld "RawData" to file rawdata
close file rawdata
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Code: Select all
open file rawdata
write the text of fld "RawData" to file rawdata
close file rawdata

Code: Select all
open file rawdata for binary write
put the text of fld "RawData" into tData
replace numtochar(10) with numtochar(13) in tData
write tData to file rawdata
close file rawdata
Code: Select all
open file rawdata for binary writecolinpartridge wrote:Thanks Richard, changing the first line todid the trick. Your reply regarding using the "open file" form implies there is another way ( isn't there always ) to achieve the same...I'm curious..Code: Select all
open file rawdata for binary write
Colin

Yep that works too! just one line,sturgis wrote:There is also 'put URL "binfie:/path/to/file/rawdata"' (or file:/path/to/file/rawdata, I believe 'file:' uses os specific line endings, binfile: does the write unchanged) For what you're doing ( open, write, close rather than open write write write write write, close) all at once, the URL method would work great in 1 line of code.colinpartridge wrote:Thanks Richard, changing the first line todid the trick. Your reply regarding using the "open file" form implies there is another way ( isn't there always ) to achieve the same...I'm curious..Code: Select all
open file rawdata for binary write
Colin
Code: Select all
put the text of fld "RawData" into URL ("binfile:" & rawdata)