+ Start a Discussion
k2sfdevk2sfdev 

EOF in Apex

Hi,

 

I'm making a  text file by using String and Blob, then save it as a Document.

 

My problem is that the file need to end at a special character 'EOF' . 

 

chr(26)

 

String s = 'text blar blar ' + '\r\n' + (Eof?)

 

How do I complish that?  Any comments are welcomed.

 

 

 

 Thanks