1. RE: Programming Help Needed

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)

new topic     » topic index » view message » categorize

2. Re: RE: Programming Help Needed

Well, I give up. The preview looked fine.

new topic     » goto parent     » topic index » view message » categorize

3. Re: RE: Programming Help Needed

GeorgeWalters said...

file = open(dataFile, "r")

You have to use "rb" here, not just "r".

new topic     » goto parent     » topic index » view message » categorize

4. Re: RE: Programming Help Needed

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu