PureBytes Links
Trading Reference Links
|
Hello,
\n
works perfectly in Excel. Make sure to give you
file the .txt or .csv extension
because Excel treats the same file differently
depending on extension.
Example (creates CSV file for excel)
fh=<FONT
color=#0000ff>fopen(<FONT
color=#ff00ff>"Test.csv",<FONT
color=#ff00ff>"w");
if<FONT
face="Courier New">( fh ) { <FONT
color=#800000>for( i = <FONT
color=#ff00ff>0; i < <FONT
color=#000000>BarCount<FONT
color=#000000>; i++ ) { str = <FONT
color=#0000ff>StrFormat(<FONT
color=#ff00ff>"%.4f,%.4f\n", <FONT
color=#000000>Close[ i ], <FONT
color=#000000>Volume<FONT
color=#000000>[ i ] ); <FONT
color=#0000ff>fputs(
str, fh ); } fclose<FONT
face="Courier New" color=#000000>( fh ); } <FONT face=Arial
size=2>
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Herman van den
Bergen
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">AmiBroker YahooGroups
Sent: Monday, July 05, 2004 1:49 PM
Subject: [amibroker] How do i insert a
NewLine carachter into a txt file?
I need to insert a
newline character into a text file of comma separated symbols, i tried using
"\n" but that doesn't work when i open the file with Excel or
Wordpad.
<SPAN
class=031385010-05072004>
I have too many
symbols for the number of columns available in Excel and want to export in
Columns, i.e. a newline character after each row item.
<SPAN
class=031385010-05072004>
Anybody Know what
the NewLineFeed character to use is?
<SPAN
class=031385010-05072004>
<SPAN
class=031385010-05072004>hermanCheck AmiBroker
web page at:<A
href="">http://www.amibroker.com/Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|