Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

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


  • Please log in to reply
7 replies to this topic

#1 jchambers4

jchambers4

    Seeker

  • Active Members
  • 11 posts

Posted 25 February 2004 - 03:19 AM

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:







#2 ezzetabi

ezzetabi

    さくらが さいた

  • Active Members
  • PipPipPipPipPipPip
  • 2,011 posts

Posted 25 February 2004 - 09:23 AM

Can this help?
(untested)

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

#3 ezzetabi

ezzetabi

    さくらが さいた

  • Active Members
  • PipPipPipPipPipPip
  • 2,011 posts

Posted 25 February 2004 - 09:25 AM

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, 25 February 2004 - 09:27 AM.


#4 Beastmaster

Beastmaster

    Polymath

  • Active Members
  • PipPipPipPip
  • 240 posts

Posted 25 February 2004 - 12:57 PM

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:

#5 jchambers4

jchambers4

    Seeker

  • Active Members
  • 11 posts

Posted 27 February 2004 - 03:41 AM

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

#6 Bartokv

Bartokv

    Prodigy

  • Active Members
  • PipPipPip
  • 199 posts

Posted 27 February 2004 - 04:12 AM

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

#7 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 27 February 2004 - 04:15 AM

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

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

#8 Bartokv

Bartokv

    Prodigy

  • Active Members
  • PipPipPip
  • 199 posts

Posted 27 February 2004 - 06:27 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users