<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: rababR1</title>
    <description>The latest articles on DEV Community by rababR1 (@rababr1).</description>
    <link>https://dev.to/rababr1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F538629%2F46fc3e8e-7ca7-4d80-acbe-3b041ada5b2e.png</url>
      <title>DEV Community: rababR1</title>
      <link>https://dev.to/rababr1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rababr1"/>
    <language>en</language>
    <item>
      <title>Made a text-based game in Python!</title>
      <dc:creator>rababR1</dc:creator>
      <pubDate>Wed, 16 Nov 2022 03:28:32 +0000</pubDate>
      <link>https://dev.to/rababr1/made-a-text-based-game-in-python-358l</link>
      <guid>https://dev.to/rababr1/made-a-text-based-game-in-python-358l</guid>
      <description>&lt;p&gt;What do you think?&lt;br&gt;
&lt;a href="https://replit.com/@TG101/Shrunk-A-Text-Story-Based-Adventure-Game"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>python</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>Answer: How can I have a user save and load their game in my text-based rpg in Visual Studio Code?</title>
      <dc:creator>rababR1</dc:creator>
      <pubDate>Fri, 11 Dec 2020 17:50:34 +0000</pubDate>
      <link>https://dev.to/rababr1/answer-how-can-i-have-a-user-save-and-load-their-game-in-my-text-based-rpg-in-visual-studio-code-2jl3</link>
      <guid>https://dev.to/rababr1/answer-how-can-i-have-a-user-save-and-load-their-game-in-my-text-based-rpg-in-visual-studio-code-2jl3</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/55506012/how-can-i-have-a-user-save-and-load-their-game-in-my-text-based-rpg-in-visual-st/55535224#55535224" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How can I have a user save and load their game in my text-based rpg in Visual Studio Code?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Apr  5 '19&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/55506012/how-can-i-have-a-user-save-and-load-their-game-in-my-text-based-rpg-in-visual-st/55535224#55535224" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          1
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Here is the solution I came up with:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;def save(what_to_write):
  file = open("file_name.txt", "w")
  write = file.writelines(what_to_write)
  file.close()

  file = open("file_name.txt")
  cont = file.readline()
  print (cont)
  file.close()
&lt;/code&gt;&lt;/pre&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/55506012/how-can-i-have-a-user-save-and-load-their-game-in-my-text-based-rpg-in-visual-st/55535224#55535224" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
