Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Line to write to a file - without quotation marks

Status
Not open for further replies.

galaxy0815

Technical User
Dec 27, 2006
39
US
Hi,

Does anyone know how to write just one line (like: "This is the line which should be entered to the file")to a file, so that the final file looks like:

This is the line which should be entered to the file

(The important thing is that the line in the file should not be surrounded by quotation marks)

Does anybody have a solution for this?

I tried it with:

Open file For APPEND As #1
Write #1, strtowritetofile

but then the string in the file is always sourrounded by quotation marks
 
You need to look at the Mid Function/Statement in the documentation "Macros and the CognosScript Language" to remove the quotation mark from the line before writing it to a file.
 
Just use PRINT instead of WRITE so that the double-quotes are omitted. The Help file reveals more.

soi la, soi carré
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top