# كيفية حفظ نص في ملف نصي

**URL:** <https://almohandes.org/t/%D9%83%D9%8A%D9%81%D9%8A%D8%A9-%D8%AD%D9%81%D8%B8-%D9%86%D8%B5-%D9%81%D9%8A-%D9%85%D9%84%D9%81-%D9%86%D8%B5%D9%8A/13262>\
**Category:** برنامج الماتلاب\
**Created:** [7 مارس 2008، 6:56ص UTC](https://almohandes.org/t/%D9%83%D9%8A%D9%81%D9%8A%D8%A9-%D8%AD%D9%81%D8%B8-%D9%86%D8%B5-%D9%81%D9%8A-%D9%85%D9%84%D9%81-%D9%86%D8%B5%D9%8A/13262 "2008-03-07T06:56:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SOSOOO1](https://almohandes.org/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@SOSOOO1](https://almohandes.org/u/SOSOOO1)\
**Post date:** [7 مارس 2008، 6:56ص UTC](https://almohandes.org/t/%D9%83%D9%8A%D9%81%D9%8A%D8%A9-%D8%AD%D9%81%D8%B8-%D9%86%D8%B5-%D9%81%D9%8A-%D9%85%D9%84%D9%81-%D9%86%D8%B5%D9%8A/13262/1 "2008-03-07T06:56:45Z")

</div>

السلام عليكم ورحمة الله وبركاته انا في برنامجي عاملة edit text وحابة احفظ النص المكتوب فيه في ملف نصي ممكن تساعدوني في طريقة كتابة الكود الخاص به.علما باني جربت الكثيييير من الاكواد بس ما تنفذ معي.

---

<div class="post-metadata">

**Author:** ![soud20002001](https://almohandes.org/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@soud20002001](https://almohandes.org/u/soud20002001)\
**Post date:** [8 مارس 2008، 11:16م UTC](https://almohandes.org/t/%D9%83%D9%8A%D9%81%D9%8A%D8%A9-%D8%AD%D9%81%D8%B8-%D9%86%D8%B5-%D9%81%D9%8A-%D9%85%D9%84%D9%81-%D9%86%D8%B5%D9%8A/13262/2 "2008-03-08T23:16:09Z")

</div>

حياكي الله مرة أخرى …  
بس حابب اسأل : شو صار معك في المشاركة السابقة ؟؟؟ لم اتأكد ان البرنامج نجح…  
أما بالنسبة لهذا السؤال … ان شاء الله بسيط  
استخدمي الامر get(object,‘property name’) حيث :  
object هو اسم edit text  
property name هو string  
…الملف المرفق في المشاركة الاخيرة … ارجوكي أن تنفذيه

---

<div class="post-metadata">

**Author:** ![soud20002001](https://almohandes.org/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@soud20002001](https://almohandes.org/u/soud20002001)\
**Post date:** [9 مارس 2008، 1:56ص UTC](https://almohandes.org/t/%D9%83%D9%8A%D9%81%D9%8A%D8%A9-%D8%AD%D9%81%D8%B8-%D9%86%D8%B5-%D9%81%D9%8A-%D9%85%D9%84%D9%81-%D9%86%D8%B5%D9%8A/13262/3 "2008-03-09T01:56:25Z")

</div>

لحفظ نص في ملف نصي استعملي الامر التالي fid =fopen(‘soud.txt’,‘wt’)هذا الامر ينشئ ملف في جهازك اسمه soud.txtثم استخدمي الامر التالي لأضافة النص الذي تريدينه :fprintf(fid,‘%s’,‘the text’)ثم اكتبي fclose(fid)لان اذهبي الى الملف الموجود في الدوكيومنتز وافتحيه ستجدين مكتوب فيه the text لتغيير المكتوب فيه فقط اعيدي كتابة الاوامر وغير الجمله the text وضعي بدلها ما تريدينارجو أن تكون وصلت الفكرة
