1. RE: Programming Help Needed
- Posted by GeorgeWalters Aug 08, 2008
- 838 views
with trace without warning
object file, record, outFile sequence dataFile, outData integer count
dataFile = "c:
AcuTrack
AcuData
billedit.pdf" outData = "c:
AcuTrack
AcuData
test.pdf" file = open(dataFile, "r") outFile = open(outData,"w")
if file >0 then
record = gets(file) count = 0 while not atom(record) do count += 1 puts(outFile, record) record = gets(file) end while
end if trace(1) abort(0)
2. Re: RE: Programming Help Needed
- Posted by GeorgeWalters Aug 08, 2008
- 861 views
Well, I give up. The preview looked fine.
3. Re: RE: Programming Help Needed
- Posted by euphoric (admin) Aug 08, 2008
- 847 views
GeorgeWalters said...
file = open(dataFile, "r")
You have to use "rb" here, not just "r".
4. Re: RE: Programming Help Needed
- Posted by jeremy (admin) Aug 08, 2008
- 825 views
euphoric said...
GeorgeWalters said...
file = open(dataFile, "r")
You have to use "rb" here, not just "r".
and "wb" on the write side of things.
Jeremy