<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>OOP by รวินทร์ ไชยสิทธิพร</title>
      <link>https://padlet.com/rawin_ch/5lsyaghm4y37b2fl</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2022-08-16 07:36:43 UTC</pubDate>
      <lastBuildDate>2022-08-30 07:10:18 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>1</title>
         <author>rawin_ch</author>
         <link>https://padlet.com/rawin_ch/5lsyaghm4y37b2fl/wish/2275876831</link>
         <description><![CDATA[<div>import java.io.File;&nbsp; // Import the File class<br>import java.io.FileNotFoundException;&nbsp; // Import this class to handle errors<br>import java.util.Scanner;&nbsp;<br>import java.io.FileWriter;<br>import java.io.IOException;&nbsp;<br>public class FileTest {<br><br>	public static void main(String[] args) {<br>		 try {<br>		&nbsp; &nbsp; &nbsp; File myObj = new File("D:\\rawin\\xyz.txt"); //open file<br>		&nbsp; &nbsp; &nbsp; FileWriter myWriter = new FileWriter("D:\\rawin\\abc.txt");<br>		&nbsp; &nbsp; &nbsp; Scanner myReader = new Scanner(myObj); //สร้างวัตถุ scanner<br>		&nbsp; &nbsp; &nbsp; while (myReader.hasNextLine()) {&nbsp; //loop จนกว่าจะหมด file<br>		&nbsp; &nbsp; &nbsp; &nbsp; String data = myReader.nextLine(); //อ่านทีละบรรทัด<br>		&nbsp; &nbsp; &nbsp; &nbsp; myWriter.write(data);<br>		&nbsp; &nbsp; &nbsp; &nbsp; myWriter.write("\n");<br>		&nbsp; &nbsp; &nbsp; }<br>		&nbsp; &nbsp; &nbsp; myReader.close(); &nbsp; //ปิดไฟล์<br>		&nbsp; &nbsp; &nbsp; myWriter.close();<br>		&nbsp; &nbsp; } catch (FileNotFoundException e) {&nbsp; //เกิด error<br>		&nbsp; &nbsp; &nbsp; System.out.println("An error occurred.");<br>		&nbsp; &nbsp; &nbsp; e.printStackTrace();<br>		&nbsp; &nbsp; } catch (IOException e) {<br>			&nbsp; e.printStackTrace();<br>			}<br>		 System.out.println("OK"); &nbsp; //print ออกหน้าจอ<br>	}<br><br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-08-30 07:10:18 UTC</pubDate>
         <guid>https://padlet.com/rawin_ch/5lsyaghm4y37b2fl/wish/2275876831</guid>
      </item>
   </channel>
</rss>
