+ Start a Discussion
arunadeveloperarunadeveloper 

How to create a text file and save it to local desc like c drive or my documents

Hi there,

 

I want to create a text file once my batch job is finished and save that file to c drive r any my documents filder.

 

can any one suggest me how to create text file or word file using apex class .

 

any idea ? any sample please.

bob_buzzardbob_buzzard

The best you'll be able to do is a create a file and store it in chatter, documents, attachments etc, and then download that to your desktop using a browser.  The server can't write to your desktop because it doesn't know anything about you in batch apex.

Bhaskar ChowdaryBhaskar Chowdary

Good Morning bob

I collected the records in wrappr with check box and click on check box process into another lookup object related list

at that runtime i want prevent duplicate records process into related list please help me bob

 

 

I created wrapper class on Questions collected with check box in visualforce page if i click on the check box and click button then these all selected questions are in another object related list so at that time i want to prevent already peocessed questions.

plz help in this and send code to bhaskar.numolu@gmail.com