<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>9 Jun 2015 16:25:00 Z</lastBuildDate><pubDate>9 Jun 2015 15:40:00 Z</pubDate><description>Hi,&#13;
&#13;
I want to copy my contents in edit control into a text file. Here is my code:&#13;
&#13;
sample is int&#13;
sample = fOpen(".\sample.txt",foCreateIfNotExist)&#13;
IF sample = -1 THEN&#13;
Error(ErrorInfo)&#13;
ELSE&#13;
EDT_myedit..Cursor = 1&#13;
fAddText(sample,EDT_myedit..TextWithoutFormat)&#13;
END&#13;
&#13;
Once executed, I will get a empty file with name "sample.txt". This code will generate another file with name "2" which contains all of my edit control contents.&#13;
&#13;
How to modify my code so that "sample.txt" contains my edit control contents and file "2" is not generated.&#13;
&#13;
Thanks and Regards,&#13;
Naveen Rathan</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file/read.awp</link><title>Copy edit control contents into a text file</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-solved-copy-edit-control-contents-into-text-file-52634/read.awp</comments><pubDate>9 Jun 2015 16:25:00 Z</pubDate><description>Hi&#13;
&#13;
or you could do it in one line by using fsavetext&#13;
&#13;
Best regards</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-solved-copy-edit-control-contents-into-text-file-52634/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-solved-copy-edit-control-contents-into-text-file-52634/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file/read.awp">Copy edit control contents into a text file</source><title>Re: [SOLVED]Re: Copy edit control contents into a text file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-solved-copy-edit-control-contents-into-text-file-52633/read.awp</comments><pubDate>9 Jun 2015 16:10:00 Z</pubDate><description>Thanks Kozeta,&#13;
&#13;
It worked.&#13;
&#13;
&#13;
Thanks and Regards,&#13;
Naveen Rathan</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-solved-copy-edit-control-contents-into-text-file-52633/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-solved-copy-edit-control-contents-into-text-file-52633/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file/read.awp">Copy edit control contents into a text file</source><title>Re: [SOLVED]Re: Copy edit control contents into a text file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52632/read.awp</comments><pubDate>9 Jun 2015 16:03:00 Z</pubDate><description>Hello,&#13;
Try;&#13;
&#13;
test is string=RTFtoText(EDT_myedit)&#13;
IF fFileExist("sample.txt") THEN&#13;
fAddText("sample.txt",test)&#13;
ELSE&#13;
fSave…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52632/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52632/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file/read.awp">Copy edit control contents into a text file</source><title>Re: Copy edit control contents into a text file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52631/read.awp</comments><pubDate>9 Jun 2015 15:55:00 Z</pubDate><description>fAddText(".\sample.txt",EDT_myedit..TextWithoutFormat)&#13;
&#13;
check this page: http://doc.windev.com/en-US/index.awp?1000020494</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52631/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52631/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file/read.awp">Copy edit control contents into a text file</source><title>Re: Copy edit control contents into a text file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52630/read.awp</comments><pubDate>9 Jun 2015 15:52:00 Z</pubDate><description>Hi Stefan,&#13;
&#13;
Same results even after using RTFtoText. I can see contents in a file name called "2" rather than "sample.txt".&#13;
&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52630/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52630/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file/read.awp">Copy edit control contents into a text file</source><title>Re: Copy edit control contents into a text file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52629/read.awp</comments><pubDate>9 Jun 2015 15:46:00 Z</pubDate><description>Hi Naveen,&#13;
&#13;
I think you should use&#13;
&#13;
fAddText(sample,RTFToText(EDT_myedit))&#13;
&#13;
instead of&#13;
&#13;
fAddText(sample,EDT_myedit..Text…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52629/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file-52629/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52623-copy-edit-control-contents-into-text-file/read.awp">Copy edit control contents into a text file</source><title>Re: Copy edit control contents into a text file</title></item></channel></rss>
