function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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