Getting rid of carriage Return/Newline in textfile

junice
07-09-2001, 10:29 PM
When using Print# statement to output a string to a textfile, a carriage return will be placed at the end of the text so that another string that is output will be placed on a new line.
Is it possible/any way to take away this carraige return? I'm required to generate a textfile so that it could be uploaded to Astra(legacy system). A carraige return will be interpreted by Astra as a empty record which will cause problems.

pratim_g
07-10-2001, 04:40 AM
Hi try using the filesystem object and the write method. I think the write method does not put a carraige return at the end.
Reply if it worked...Pratim

jerryfchui
07-10-2001, 05:18 PM
Yes the write method of the TextStream object does job needed. The reference to FileSystemObject & TextStream objects are available from MS scripting runtime library

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum