| View previous topic :: View next topic |
| Author |
Message |
jaango123 General User

Joined: 12 Apr 2012 Posts: 12
|
Posted: Fri May 11, 2012 8:02 am Post subject: Remove the newline char whiel writing to text file |
|
|
Hi,
This simple macro will write the text "ABC" to the file temp.txt under E: drive. However if we open the text file, notice that there is a new line char after C. How can we get rid of this, so that it will end after C
| Code: |
Sub ExamplePrint
Print "ABC"
Print "ABC","123"
i = FreeFile()
Open "e:\Temp.txt" For Output As i
Print #i, "ABC"
Close #i
end Sub
|
|
|
| Back to top |
|
 |
jaango123 General User

Joined: 12 Apr 2012 Posts: 12
|
Posted: Fri May 11, 2012 8:27 am Post subject: Re: Remove the newline char whiel writing to text file |
|
|
In vba if we give like this, the newline doesnt come. however in openoffice the whole text document comes as empty
|
|
| Back to top |
|
 |
|