Difference between revisions of "C-and-Cpp/C4/File-Handling-In-C/Khasi"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
Line 490: Line 490:
 
|-
 
|-
 
| 07:18
 
| 07:18
| La pynkylla sha ka ktien khasi da i Godwin pyrbot
+
| La pynkylla sha ka ktien khasi da i Godwin pyrbot bad nga I John Nongkynrih
  
 
|-
 
|-
 
| 07:22
 
| 07:22
 
| Khublei naka bynta ba iasnohlang
 
| Khublei naka bynta ba iasnohlang

Latest revision as of 00:34, 27 October 2017

Time Narration
00:01 Ngi pdiang sngewbha iaphi sha ka jinghikai halor ka files in C .
00:05 Ha kane ka jinghikai ngin pule shaphang:
00:08 Kumno ban plie ia ka phail.
00:10 Kumno ban pule ia ki data na ka phail.
00:12 Kumno ban thoh ia ki data ha poh ka phail.
00:15 Katto katne ki nuksa.
00:17 Ban record ha kane ka jinghikai, Nga pyndonkam da
00:20 Ubuntu Operating System version 11.10,
00:24 gcc Compiler version 4.6.1.
00:28 To ngin sdang da ka jinglamphrang shaphang ka phail.
00:31 Ka phail kadei ka jingshim kyllum jong ki data.
00:34 Ka lah ban dei ka database, ka prokram, ne shithi ne kano kano.
00:39 Ngi lah ban shna ia ka phail bad ban access ia ka da kaba pyndonkam da ka C.
00:44 Mynta to ngin peit ki nuksa halor ka file handling hapoh ka C.
00:48 Nga lah thoh ia ka prokram.
00:50 To ngin peit kynmaw ba ka kyrteng ka phail jongngi ka long file.c
00:55 Ha kane ka prokram ngin shna ia ka phail bad thoh ia ki data hapoh jong ka.
01:01 To ngan batai mynta ia ka code.
01:03 Kane ka dei ka header file. jong ngi.
01:05 Kane ka dei ka main() function jong ngi.
01:07 Ban define ia ka file variable ngi shait type FILE.
01:12 Ka FILE variable la defined hapoh ka header stdio.h.
01:19 *fp ka dei ka pointer sha ka FILE variable.
01:22 Yn buh ia baroh ki information shaphang ka file ,
01:26 Kum ka kyrteng jong ka, status bad current information.
01:31 To ngin phai biang sha ka slide jong ngi.
01:33 Mynta ngin peit ia ka syntax ban plie ia ka phail.
01:37 Hangne, ka fopen() function ka plie ia ka stream.
01:42 Nangta kan links ia ka file da ka stream.
01:44 Ka kyrteng ka phail ka dei ka kyrteng jong ka phail kaba ngi kwah ban plie ne ban shna.
01:49 Ngi lah ban ai ia ki ryngkat bad ka kyrteng ka phail.
01:53 Bad ngin ai ia ka extension.
01:56 Hangne ngin ai ia ka mode jong ka phail.
01:59 To ngin peit ia ki jait mode:
02:02 "w" – ka shna ia ka file na kabynta ban pule ne thoh.
02:06 "r" – ka plie ia ka file na kabynta ban pule.
02:09 "a" – yn thoh ha kaba kut jong ka file.
02:12 Mynta phai biang sha ka prokram jong ngi.
02:15 Hangne, ngi shna ia ka Sample.txt phail hapoh ka write mode.
02:20 Ngi lah ban iohi ba ia ka path la ai.
02:23 Ia ka phail jong ngi la shna halor ka desktop.
02:27 Nangta ngin thoh ia ki statements ha ka file.
02:30 "Welcome to the spoken-tutorial" bad
02:32 "This is an test example".
02:34 fprintf() ka thoh ia ka output ba la ai ha ka output stream.
02:39 fclose() ka khang ia ka phail baiadei bad ka stream.
02:43 Bad kane ka dei ka return statement jong ngi.
02:46 Mynta click Save.
02:48 To ngin execute ia ka prokram
02:50 Plie ia ka terminal window da kaba nion Ctrl, Alt bad T keys ha kajuh ka por na ka keyboard jong phi.
02:59 Ban compile, type gcc space file dot c space hyphen o space file
03:06 Nion Enter Ban execute, type dot slash file (./file).
03:11 Nion Enter.
03:13 Ngi iohi ba ka file la executed.
03:15 Mynta ngin check ia ki.
03:17 To ngin plie ia ka Home folder.
03:20 Click ia ka Home folder option.
03:22 Mynta click ia ka Desktop option.
03:25 Kane ka dei ka sample.txt phail jongngi.
03:29 Kane ka pyni ba ka phail jong ngi la lah ban shna.
03:32 Mynta to ngin plie.
03:34 Double click ia ka phail.
03:36 Ngi lah ban iohi ia ki messages hangne.
03:39 Welcome to the Spoken Tutorial.
03:41 This is an test example.
03:44 Da kumne ba ngi lah ban shna ia ka phail bad thoh ia ki data hapoh jong ka.
03:48 Ngin peit mynta kumno ban pule ia ki data na ka file.
03:52 Nga lah dep shna ia ka prokram.
03:54 Ngan plie ia ka.
03:56 Ha kane ka prokram, ngin pule ia ki data na ka phail jong ngi ka sample.txt bad print ia ki data jong ka console.
04:03 To ngan batai mynta ia ka code.
04:05 Kane kadei ka header file. jong ngi.
04:08 Kane ka dei ka main() function jong ngi.
04:10 Hangne, ka file variable bad ka pointer sha ka file variable la defined.
04:15 Kumta ngi lah declared ia ka character variable c.
04:19 Hangne, ngi plie ia ka phail Sample.txt hapoh ka read mode.
04:24 Ia ka output la buh hapoh ka fp.
04:27 Nangta ngi check ia ka condition-
04:29 "If fp ka iaryngkat ia ka NULL ".
04:32 Lada ka condition ka long true nangta ngin print ia ka message:
04:36 "File doesn't exist."
04:38 Lym kumta, kan check da kawei pat ka condition-
04:41 While c is not equal to EOF.
04:46 Hangne, EOF ka dei ka end of file.
04:49 Ka pyni ia ka jing kut jong ka input.
04:52 kadei ka condition ha kaba ym don data shuh ba lah ban pule na ka data source.
04:57 lada ka condition ka dei nangta kan pyni ia ki character na ka Sample.txt phail, halor ka console.
05:06 Hangne, getc ka returns ia ka character na ka specified phail ne stream.
05:12 Mynta, kan return ia ka character na ka Sample.txt phail jongngi.
05:17 putchar ka juh pyni ia ka character halor ka console.
05:22 Kumta kan sa buh ia ki characters hapoh ka variable c.
05:25 Hangne ngi khang noh ia ka phail.
05:28 Bad kane ka dei ka return statement jong ngi.
05:30 Mynta click Save.
05:32 To ngin execute ia ka program.
05:35 Phai biang sha ka terminal.
05:37 Ban compile, type gcc space readfile dot c space hyphen o space read
05:45 Mynta nion Enter .
05:47 Ban execute, type ./read (dot slash read).
05:52 Ia ka output la pyni kum:
05:54 Welcome to the Spoken-Tutorial.
05:56 This is an test example.
05:59 Da kane ngi la poi sha kaba kut jong ka jinghikai.
06:01 Phai biang sha ki slides jong ngi.
06:03 To ngin batai lyngkot. Ha kane ka jinghikai ngi lah pule:
06:06 File handling,
06:08 Ban thoh ia ki data ha ka phail.
06:10 eg. fp = fopen(“Sample.txt”, “w”);
06:17 Ban pule ia ki data na ka phail. eg. fp = fopen(“Sample.txt”, “r”);
06:25 Kum ka assignment- Thoh ia ka prokram ban shna ia ka phail TEST.
06:30 Thoh ia ka kyrteng jong phi bad ka address hapoh ka phail TEST.
06:33 Nangta pyni ia ka halor ka console da kaba pyndonkam ka C Program.
06:37 Peit ia ka video ba la ai ha ryngkat ka link ha trai.
06:40 Ka batai lyngkot ia ka Spoken Tutorial Project.
06:43 Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien.
06:47 The Spoken Tutorial Project Team:
06:50 ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
06:53 Yn ai syrnod ia kiba pass ia ka online test.
06:57 Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka

'contact@spoken-tutorial.org

07:03 Spoken Tutorial” Project ka dei ka bynta jong ka Talk to a Teacher.
07:07 La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India.
07:14 Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum :
07:18 La pynkylla sha ka ktien khasi da i Godwin pyrbot bad nga I John Nongkynrih
07:22 Khublei naka bynta ba iasnohlang

Contributors and Content Editors

John123