Sign in to follow this  
Followers 0

How To Add White Space In A File Write....

8 posts in this topic

Posted

I simply want to add white space at the beginning of a file with the following command:

FileAppend, This is the output to the file.....,Filename.DAT

However, what happens is the white space at the beginning of the line get stripted.

How can I fix this? :whistle:

Share this post


Link to post
Share on other sites



Posted

Can this help?

(untested)

FileAppend,# This is the output to the file.....,Filename.DAT

Share this post


Link to post
Share on other sites

Posted (edited)

TESTED! It works :angry:

The # is a special char that is no sent, but it delineate the beginning of the command :evil:

btw, what is the meaning or the larry post?!? :whistle:B)

Edited by ezzetabi

Share this post


Link to post
Share on other sites

Posted

Nice workaround! B)

To add a space/invisible character in an open document you could use {ASCII 160} = ALT+NUM+160

Send, {ASCII 160}

Usefull for (invisible) setup username registration :whistle:

Share this post


Link to post
Share on other sites

Posted

OK,

I tried both methods outlined with the:

FILEAPPEND command

and both methods outlined above failed for me.

ALT-NUM-160 produces a strange character

and

The # method puts a # in the output datastream to the file.

I think what Larry was saying is good luck. There is no way to do this.

Jack

Share this post


Link to post
Share on other sites

Posted

Hmm.... Try 255, it's the ASCII standard whitespace character.

Share this post


Link to post
Share on other sites

Posted

Hmm.... Try 255, it's the ASCII standard whitespace character.

No it isn't, Hex 20 (Dec 32) is the space character.

Share this post


Link to post
Share on other sites

Posted

No it isn't, Hex 20 (Dec 32) is the space character.

I was describing the ASCII "whitespace" Hex FF (Dec 255), not the ASCII "space" Hex 20 (Dec 32).

The "whitespace" is a non-printable character that is often used in situations where a standard "space" character would cause undesirable effects due to implied translations. The ASCII standard code for the "whitespace" character within the English MS-DOS environment is 255.

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0




  • Recently Browsing   0 members

    No registered users viewing this page.