<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[C++ to txt file update]]></title><description><![CDATA[<p dir="auto">දන්න කෙනෙක් කියන්න c++ වලින් කොහොමද txt file එකක තියන data update අරන්න් code එක ලියන්නේ කියලා</p>
<p dir="auto">Eg : username and password txt එක්ක තිබොත් c++ හරහා password එක update කරන්න</p>
]]></description><link>https://lankadevelopers.lk/topic/341/c-to-txt-file-update</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 21:56:11 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/341.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Aug 2019 19:03:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ to txt file update on Tue, 13 Aug 2019 06:08:40 GMT]]></title><description><![CDATA[<p dir="auto">guys mata one wade una, thanks for every ones's help eth ogola hamoma duna link wala thibe for loop ekak athule code karala, ee nisa api loop eka run wene dene ganata thami run une, eka aula thami hithana login,txt eka records 100 thiyanwa eth api loop ekata dune 10 bn eka wada nane, ow ow dan ogola kiyai 100 loop ekata dunam harine kiyala, na eka waradi mokda mage program eka thiyanwa aluthin record txt fielata add karana ethaktoa 100 dala bane, anway thanks man code eka manma hadagatha, ogolatantath awasha wei kiyala hithuna nisa denam code ekata</p>
<p dir="auto"><a href="https://helageek.blogspot.com/2019/08/c-txt-file-data-update-code.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://helageek.blogspot.com/2019/08/c-txt-file-data-update-code.html</a></p>
]]></description><link>https://lankadevelopers.lk/post/2067</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2067</guid><dc:creator><![CDATA[KrissSachintha]]></dc:creator><pubDate>Tue, 13 Aug 2019 06:08:40 GMT</pubDate></item><item><title><![CDATA[Reply to C++ to txt file update on Sat, 10 Aug 2019 23:08:27 GMT]]></title><description><![CDATA[<p dir="auto">@ChrisSachintha<br />
Oya udin dala thiyenne machan code eka</p>
]]></description><link>https://lankadevelopers.lk/post/2064</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2064</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Sat, 10 Aug 2019 23:08:27 GMT</pubDate></item><item><title><![CDATA[Reply to C++ to txt file update on Sat, 10 Aug 2019 16:21:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/1">@ciaompe</a> machan assigment ekata, txt file ekin thibanm thama hari,</p>
]]></description><link>https://lankadevelopers.lk/post/2063</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2063</guid><dc:creator><![CDATA[KrissSachintha]]></dc:creator><pubDate>Sat, 10 Aug 2019 16:21:14 GMT</pubDate></item><item><title><![CDATA[Reply to C++ to txt file update on Sat, 10 Aug 2019 08:06:26 GMT]]></title><description><![CDATA[<p dir="auto">me thiyenne .txt eken use karana widiya.</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;conio.h&gt;
#include &lt;string&gt;

using namespace std;

class User {

public:
	string username;
	string password;

	void userRegister()
	{
		ofstream usersFile ("userData.txt");
		if (	!usersFile.is_open())
		{
			usersFile.open("userData.txt");
		}
	        usersFile &lt;&lt; username &lt;&lt; " " &lt;&lt; password &lt;&lt; endl;
	        usersFile.close();
	}

};

int main() {
	
	User user1;
	
	cout &lt;&lt; "Welcome!\n-------------------------------\n\nPlease register.\nEnter a new username:\n";
	cin &gt;&gt; user1.username;

	cout &lt;&lt; "\nPlease enter a new password:\n";
	cin &gt;&gt; user1.password;

	user1.userRegister();

	getch();
}
</code></pre>
]]></description><link>https://lankadevelopers.lk/post/2062</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2062</guid><dc:creator><![CDATA[ciaompe]]></dc:creator><pubDate>Sat, 10 Aug 2019 08:06:26 GMT</pubDate></item><item><title><![CDATA[Reply to C++ to txt file update on Sat, 10 Aug 2019 08:00:48 GMT]]></title><description><![CDATA[<p dir="auto">.txt use karanna epa .dat use karnana oyata lesiyen karnana puluwan oya wade.</p>
]]></description><link>https://lankadevelopers.lk/post/2061</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2061</guid><dc:creator><![CDATA[ciaompe]]></dc:creator><pubDate>Sat, 10 Aug 2019 08:00:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++ to txt file update on Thu, 08 Aug 2019 13:43:18 GMT]]></title><description><![CDATA[<p dir="auto">@Malith not the answer i was hoping</p>
]]></description><link>https://lankadevelopers.lk/post/2056</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2056</guid><dc:creator><![CDATA[KrissSachintha]]></dc:creator><pubDate>Thu, 08 Aug 2019 13:43:18 GMT</pubDate></item><item><title><![CDATA[Reply to C++ to txt file update on Thu, 08 Aug 2019 11:33:22 GMT]]></title><description><![CDATA[<p dir="auto">meka balana <a href="https://www.daniweb.com/programming/software-development/threads/93584/how-to-update-data-in-a-text-file" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.daniweb.com/programming/software-development/threads/93584/how-to-update-data-in-a-text-file</a></p>
]]></description><link>https://lankadevelopers.lk/post/2053</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2053</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Thu, 08 Aug 2019 11:33:22 GMT</pubDate></item></channel></rss>