?? slide0090.htm
字號(hào):
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:p="urn:schemas-microsoft-com:office:powerpoint"
xmlns:oa="urn:schemas-microsoft-com:office:activation"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=ProgId content=PowerPoint.Slide>
<meta name=Generator content="Microsoft PowerPoint 11">
<link id=Main-File rel=Main-File href="../z9.htm">
<link rel=Preview href=preview.wmf>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
p\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
v\:textbox {display:none;}
</style>
<![endif]-->
<title>第九章 文件</title>
<meta name=Description content=2008-3-24>
<link rel=Stylesheet href="master06_stylesheet.css">
<!--[if gte IE 5]>
<object id=MSOANIM classid="CLSID:A4639D2F-774E-11D3-A490-00C04F6843FB"></object>
<object id=MSOTIME classid="CLSID:A4639D29-774E-11D3-A490-00C04F6843FB"></object>
<![endif]-->
<![if !ppt]>
<style media=print>
<!--.sld
{left:0px !important;
width:6.0in !important;
height:4.5in !important;
font-size:107% !important;}
-->
</style>
<style>
<!--
oa\:* { BEHAVIOR: url(#MSOANIM#ANIM) url(#MSOTIME#TIME) }
oa\:par,oa\:seq,oa\:iterate { BEHAVIOR:url(#MSOTIME) }
oa\:video,oa\:audio {BEHAVIOR:url(#MSOTIME) url(#MSOTIME#MEDIA) }
-->
</style>
<script src=script.js></script><script><!--
if( !IsNts() ) Redirect( "PPTSld" );
//--></script><script><!--
g_animItemsToHide=new Array("_x0000_s164866_298_308","_x0000_s164866_290_298","_x0000_s164866_256_290","_x0000_s164866_228_256","_x0000_s164866_192_228","_x0000_s164866_164_192","_x0000_s164866_147_164","_x0000_s164866_121_147","_x0000_s164866_85_121","_x0000_s164866_62_85","_x0000_s164866_30_62","_x0000_s164866_0_30");
//--></script><!--[if vml]><script>g_vml = 1;
</script><![endif]--><![endif]><o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="161"/>
</o:shapelayout>
</head>
<body lang=ZH-CN style='margin:0px;background-color:black'
onclick="DocumentOnClick()" onresize="_RSW()" onload="LoadSld()"
onkeypress="_KPH()" oa:clockstart="onstart">
<div id=SlideObj class=sld style='position:absolute;top:0px;left:0px;
width:534px;height:400px;font-size:16px;background-color:#E3DDBB;background-image:
url("master06_image001.jpg");clip:rect(0%, 101%, 101%, 0%);visibility:hidden'><p:slide
coordsize="720,540"
colors="#ffffff,#000000,#808080,#482400,#dfd6c3,#d69b80,#993300,#666600"
masterhref="master06.xml">
<p:shaperange href="master06.xml#_x0000_s192513"/><![if !ppt]><p:shaperange
href="master06.xml#_x0000_s192514"/><![if !vml]><img border=0
v:shapes="_x0000_s192514" src="master06_image005.jpg" style='position:absolute;
top:0%;left:0%;width:7.49%;height:100.0%'><![endif]><p:shaperange
href="master06.xml#_x0000_s192516"/><p:shaperange
href="master06.xml#_x0000_s192517"/><![endif]><p:shaperange
href="master06.xml#_x0000_m192520"/><v:shape id="_x0000_s164866" type="#_x0000_m192520"
style='position:absolute;left:60pt;top:24pt;width:660pt;height:456pt;
mso-wrap-style:square;v-text-anchor:top' o:userdrawn="f" o:insetmode="custom">
<v:fill o:detectmouseclick="f"/>
<v:stroke o:forcedash="f"/>
<o:lock v:ext="edit" text="f"/>
<v:textbox style='layout-flow:horizontal;mso-rotate:0;direction:LTR;
mso-rotate-with-shape:f;mso-fit-shape-to-text:f;mso-fit-text-to-shape:f'
inset="2.53972mm,1.2698mm,2.53972mm,1.2698mm" o:singleclick="t"/>
<p:placeholder type="body" position="1"/><p:animation number="1" delay="0"
type="text" level="1" effect="fly" direction="left" flag="17408"/></v:shape>
<div v:shape="_x0000_s164866" class=B>
<div id="_x0000_s164866_0_30" style='mso-line-spacing:"130 0 0";position:absolute;
top:6.75%;left:9.36%;width:107.11%;height:5.25%;white-space:nowrap'><span
style='mso-special-format:nobullet;display:none'>•</span><span
style='font-size:75%'><b><span style='mso-tab-count:1;width:3.5%'> </span></b></span><span
style='font-family:宋體;mso-fareast-font-family:宋體;font-size:75%'><b>例</b></span><span
lang=EN-US style='mso-bidi-font-family:"Times New Roman";font-size:75%;
mso-fareast-language:ZH-CN'><b>9.2 </b></span><span style='font-family:宋體;
mso-fareast-font-family:宋體;font-size:75%'><b>編程把一個(gè)文本框中的內(nèi)容,以文件形式存入磁盤(pán)。</b></span><span
style='font-family:"Arial Unicode MS";mso-fareast-font-family:"Arial Unicode MS";
font-size:75%;display:none'><b> </b></span></div>
<div id="_x0000_s164866_30_62" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:13.75%;left:9.36%;width:77.52%;height:5.25%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span
style='font-family:"Times New Roman";mso-ascii-font-family:"Times New Roman";
mso-fareast-font-family:"Arial Unicode MS";font-size:75%'><b><span
style='mso-tab-count:1;width:4.83%'> </span></b></span><span style='font-family:
宋體;mso-fareast-font-family:宋體;font-size:75%'><b>假定文本框的名稱為</b></span><span
lang=EN-US style='font-size:75%;mso-fareast-language:ZH-CN'><b>My</b></span><span
lang=EN-US style='font-family:"Times New Roman";mso-ascii-font-family:"Times New Roman";
mso-fareast-font-family:"Arial Unicode MS";font-size:75%;mso-fareast-language:
ZH-CN'><b>txt</b></span><span style='font-family:宋體;mso-fareast-font-family:
宋體;font-size:75%'><b>,文件名為</b></span><span lang=EN-US style='font-size:75%;
mso-fareast-language:ZH-CN'><b>Myfile</b></span><span lang=EN-US
style='font-family:"Times New Roman";mso-ascii-font-family:"Times New Roman";
mso-fareast-font-family:"Arial Unicode MS";font-size:75%;mso-fareast-language:
ZH-CN'><b>.dat</b></span><span style='font-family:宋體;mso-fareast-font-family:
宋體;font-size:75%'><b>。</b></span><span style='font-family:"Arial Unicode MS";
mso-fareast-font-family:"Arial Unicode MS";font-size:75%;display:none'><b> </b></span></nobr></div>
<div id="_x0000_s164866_62_85" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:20.5%;left:9.36%;width:72.28%;height:5.25%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span
style='font-family:宋體;mso-fareast-font-family:宋體;font-size:75%;color:red'><b>方法</b></span><span
lang=EN-US style='font-family:"Times New Roman";mso-ascii-font-family:"Times New Roman";
mso-fareast-font-family:"Arial Unicode MS";font-size:75%;color:red;mso-fareast-language:
ZH-CN'><b>1</b></span><span style='font-family:宋體;mso-fareast-font-family:
宋體;font-size:75%;color:red'><b>:</b></span><span style='font-family:宋體;
mso-fareast-font-family:宋體;font-size:75%'><b>把整個(gè)文本框的內(nèi)容一次性地寫(xiě)入文件。</b></span><span
style='font-family:"Arial Unicode MS";mso-fareast-font-family:"Arial Unicode MS";
font-size:75%;display:none'><b> </b></span></nobr></div>
<div id="_x0000_s164866_85_121" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:27.25%;left:9.36%;width:71.72%;height:5.5%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%'><b><span style='mso-tab-count:
1;width:5.22%'> </span>Open "</b></span><span lang=EN-US
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-hansi-font-family:"Courier New";font-size:75%;mso-fareast-language:ZH-CN'><b>Myfile</b></span><span
lang=EN-US style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%;mso-fareast-language:ZH-CN'><b>.dat"
For Output As #1 </b></span></nobr></div>
<div id="_x0000_s164866_121_147" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:34.0%;left:9.36%;width:80.14%;height:5.5%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span lang=EN-US
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%;mso-fareast-language:ZH-CN'><b><span
style='mso-tab-count:1;width:4.67%'> </span>Print #1, Mytxt.Text<span
style='mso-tab-count:4;width:45.31%'> </span> </b></span></nobr></div>
<div id="_x0000_s164866_147_164" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:41.0%;left:9.36%;width:80.14%;height:5.5%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span lang=EN-US
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%;mso-fareast-language:ZH-CN'><b><span
style='mso-tab-count:1;width:4.67%'> </span>Close #1<span style='mso-tab-count:
7;width:75.2%'> </span> </b></span></nobr></div>
<div id="_x0000_s164866_164_192" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:48.25%;left:9.36%;width:88.95%;height:5.25%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span
style='font-family:宋體;mso-fareast-font-family:宋體;font-size:75%;color:#0033CC'><b>方法</b></span><span
lang=EN-US style='font-family:"Times New Roman";mso-ascii-font-family:"Times New Roman";
mso-fareast-font-family:"Arial Unicode MS";font-size:75%;color:#0033CC;
mso-fareast-language:ZH-CN'><b>2</b></span><span style='font-family:宋體;
mso-fareast-font-family:宋體;font-size:75%;color:#0033CC'><b>:把整個(gè)文本框的內(nèi)容一個(gè)字符一個(gè)字符地寫(xiě)入文件。</b></span><span
style='font-family:"Arial Unicode MS";mso-fareast-font-family:"Arial Unicode MS";
font-size:75%;color:#0033CC;display:none'><b> </b></span></nobr></div>
<div id="_x0000_s164866_192_228" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:54.75%;left:9.36%;width:71.72%;height:5.5%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%;color:#0033CC'><b><span
style='mso-tab-count:1;width:5.22%'> </span>Open "Myfile.dat" For
Output As #1 </b></span></nobr></div>
<div id="_x0000_s164866_228_256" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:61.75%;left:9.36%;width:55.8%;height:5.5%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span lang=EN-US
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%;color:#0033CC;mso-fareast-language:
ZH-CN'><b><span style='mso-tab-count:1;width:6.72%'> </span>For i=1 To
len(Mytxt.Text) </b></span></nobr></div>
<div id="_x0000_s164866_256_290" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:68.75%;left:9.36%;width:67.79%;height:5.5%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span lang=EN-US
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%;color:#0033CC;mso-fareast-language:
ZH-CN'><b><span style='mso-tab-count:1;width:5.53%'> </span><span
style='mso-spacerun:yes'> </span>Print
#1,Mid(Mytxt.Text,i,1); </b></span></nobr></div>
<div id="_x0000_s164866_290_298" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:75.75%;left:9.36%;width:15.91%;height:5.5%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span lang=EN-US
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%;color:#0033CC;mso-fareast-language:
ZH-CN'><b><span style='mso-tab-count:1;width:23.55%'> </span>Next i </b></span></nobr></div>
<div id="_x0000_s164866_298_308" style='text-align:justify;mso-line-spacing:
"130 0 0";position:absolute;top:82.5%;left:9.36%;width:19.85%;height:5.5%'><nobr><span
style='mso-special-format:nobullet;display:none'>•</span><span lang=EN-US
style='font-family:"Courier New";mso-ascii-font-family:"Courier New";
mso-bidi-font-family:"Courier New";font-size:75%;color:#0033CC;mso-fareast-language:
ZH-CN'><b><span style='mso-tab-count:1;width:18.89%'> </span>Close #1</b></span></nobr></div>
</div>
<v:rect id="_x0000_s164868" href="javascript:parent.GoToPrevSld()" style='position:absolute;
left:521pt;top:495pt;width:53pt;height:30pt;mso-wrap-style:none;
v-text-anchor:middle' filled="f" fillcolor="#dfd6c3 [4]" stroked="f"
strokecolor="black [1]">
<v:fill color2="white [0]" o:detectmouseclick="t"/>
<v:shadow color="gray [2]"/>
<p:onmouseclick jump="previousSlide"/></v:rect><v:rect id="_x0000_s164869"
href="javascript:parent.GoToNextSld()" style='position:absolute;left:592pt;
top:496pt;width:53pt;height:30pt;mso-wrap-style:none;v-text-anchor:middle'
filled="f" fillcolor="#dfd6c3 [4]" stroked="f" strokecolor="black [1]">
<v:fill color2="white [0]" o:detectmouseclick="t"/>
<v:shadow color="gray [2]"/>
<p:onmouseclick jump="nextSlide"/></v:rect><v:rect id="_x0000_s164870"
href="javascript:parent.GoToFirst()" style='position:absolute;left:664pt;
top:496pt;width:53pt;height:30pt;mso-wrap-style:none;v-text-anchor:middle'
filled="f" fillcolor="#dfd6c3 [4]" stroked="f" strokecolor="black [1]">
<v:fill color2="white [0]" o:detectmouseclick="t"/>
<v:shadow color="gray [2]"/>
<p:onmouseclick jump="firstSlide"/></v:rect><![if !vml]><map name="map_s6"><area
href="javascript:parent.GoToFirst()" onclick="window.event.cancelBubble=true;"
shape=rect coords="106, 0, 146, 23"><area
href="javascript:parent.GoToNextSld()"
onclick="window.event.cancelBubble=true;" shape=rect
coords="53, 0, 92, 23"><area href="javascript:parent.GoToPrevSld()"
onclick="window.event.cancelBubble=true;" shape=rect
coords="0, 0, 40, 22"></map><![endif]><![if !vml]><img border=0
v:shapes="_x0000_s164868,_x0000_s164869,_x0000_s164870"
src="slide0090_image031.gif" usemap="#map_s6" style='position:absolute;
top:91.75%;left:72.28%;width:27.52%;height:6.25%'><![endif]></p:slide></div>
<p:animation number="-1306013186"/><oa:par id="TimeNode0" dur="indefinite"
restart="never" p:nodeType="timingRoot">
next="document.onpptnext" concurrent="enabled" nextAction="seek"
p:nodeType="mainSeq">
<oa:par id="TimeNode2" begin="indefinite" fill="hold">
<oa:par id="TimeNode3" begin="0.0" fill="hold">
<oa:par id="TimeNode4" o:presetID="ppt_2" o:presetClass="entrance"
o:presetSubType="0x8" begin="0.0" fill="hold" o:groupID="0"
p:nodeType="clickEffect">
<oa:set id="TimeNode5" begin="0.0" dur="0.001" fill="hold"
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -