Method to read Text File from static resource.
public String textFromSomeUniqueName {
get {
StaticResource sr = [
select Body
from StaticResource
where Name = 'SomeUniqueName'
];
return sr.Body.toString();
}
}
No comments:
Post a Comment