Scilab/C4/File-handling/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Ngi pdiangsngewbha ia phi sha ka spoken tutorial halor ka File Handling da kaba pyndonkam ia ka Scilab.
00:06 Ha kane ka jinghikai, ngin pule ia ka
00:08 File handling ryngkat kine ki functions harum:
00:11 write() function , read() function
00:14 mopen(), mclose().
00:16 Na ka bynta ka jingbatai , nga pyndonkam da ka Ubuntu Linux 12.04 operating system bad ka Scilab version 5.3.3 ba la dep install.
00:26 Phi dei ban don ki jingtip ba donkam jong ka Scilab.
00:29 Lada phim don na ka bynta ki spoken tutorials ba iadei sngewbha leit sha ka spoken hyphen tutorial dot org.
00:36 Mynta ngin ia peit katto katne ki functions ha ka Scilab kiba iarap na ka bynta ka file handling.
00:41 File handling ka kynthup-
00:44 Ban write sha ka file da kaba pyndonkam ia ka write() function,
00:47 Ban read na ka file da kaba pyndonkam ia ka read() function,
00:51 Ban plie ia ka file ba la don lypa da kaba pyndonkam ia ka mopen() function bad
00:55 Ban khang ia ka file ba la plie lypa da kaba pyndonkam ia ka mclose() function.
01:00 To ngin sdang da ka ba write ia ka data sha ka file.
01:03 Na ka bynta kane ka jingthmu, la pyndonkam ia ka write() command
01:07 Phai sha ka Scilab console window.
01:10 Ban sdang ,to ngin create ia ka matrix jong ki random numbers.
01:15 Type: random underscore matrix is equal to rand into bracket 20 comma 1 close the bracket semicolon bad shon Enter.
01:29 Mynta check ia ka directory kaba phi treikam mynta.
01:32 Type pwd .
01:34 Ha kane ka bynta jong nga, ka directory ba treikam kadei slash home slash fossee .
01:39 Pynthikna ba phi don ha ka directory kaba phi don ia ka read & write permission, shwa ban execute ia kine ki commands.
01:47 Mynta ngin write ia ka content jong u variable random underscore matrix sha ka text file da kaba pyndonkam ia ka write command.
01:55 Type:--> write into bracket into quotes random dash numbers dot txt close the quotes comma random underscore matrix close the bracket bad shon Enter.
02:18 To ngin peit lada lah shna ia kane ka file.
02:21 Ngan minimize ia ka Scilab console window.
02:23 Bad plie ia ka file kaban sa create bad save ha ka fossee directory jong ka computer jong nga.
02:33 Phi iohi ia ka data na u variablerandom underscore matrix la dep write ha ka text file random dash numbers dot txt.
02:42 Ngan khang noh ia kane ka file.
02:45 Ngi phai biang sha ka Scilab console.
02:47 Mynta ngin sa iohi kumno ban read ia ka data na ka file.
02:50 Na ka bynta kane ngin pyndonkam ia ka command “read” kumne harum:
02:55 Type: new underscore vector is equal to read into bracket into quote random dash numbers dot txt close the quotes comma 20 comma 1 close the bracket bad shon Enter.
03:18 Ka “read” command ka read ia baroh ki data na ka file ba la jer kyrteng ha ka argument,
03:23 Ha kane ka bynta random dash numbers dot txt,
03:27 Bad buh ha u variable new underscore vector.
03:31 Shon “Enter” ban bteng ia ka display.
03:35 Lada ngi pynpher ia ka command ba hajrong kum:
03:39 new underscore vector is equal to read into bracket into quotes random dash numbers dot txt comma 19 comma 1
03:49 Ka “read” command kan read sa tang 19 tylli ki data values na ka file ba la jer kyrteng ha ka argument,
03:56 Ha kane ka bynta random dash numbers dot txt,
03:59 Bad buh ha u variable new underscore vector.
04:03 Leh ia kane ka command ha ka Scilab console bad pynshisha ia ka output.
04:08 Mynta to ngin ia peit shaphang ka mopen() function:
04:12 fd = mopen into bracket file-name comma mode
04:17 “mopen” command la ju pyndonkam ban plie ia ka file ba la don lypa kaba iadei bad ka rukom jong ka C fopen
04:25 “mode” udei u character string uba peit bad tehlakam la ka file la plie na ka bynta:
04:30 “r”= plie ia ka file ban read.
04:34 “rb” = plie ia ka binary file ban read.
04:39 “rt”= plie ia ka text file ban read.
04:43 “w”= create ia ka file bathymmai na ka bynta ban write lane plie bad pynlyngkot ia ka file sha zero length.
04:50 “wb”= create ia ka binary file bathymmai na ka bynta ban write lane plie bad pynlyngkot ia ka file sha zero length.
04:58 “wt”= create ia ka binary text file bathymmai na ka bynta ban write lane plie bad pynlyngkot ia ka file sha zero length.
05:06 a or ab = appends (plie ia ka file na ka bynta ban write ha kaba kut ha ka file lane create ia ka file na ka bynta ban write)
05:14 r+ or r+b = plie ia ka file na ka bynta ban update (read bad write)
05:20 Kum ka nuksa. fd underscore r is equal to mopen('random-numbers,'rt')
05:30 Ka command ba hajrong ka plie ia ka 'random-numbers' kum ka 'text and read-only' mode.
05:37 mclose into bracket fd:
05:40 Ka khang ia ka file ba la plie da kaba pyndonkam “mopen”
05:43 Ha kaba fd udei u file descriptor jong ka file ba la plie.
05:48 Lada weng noh ia fd, mclose() ka khang noh ia ka file bakhatduh ba la plie.
05:53 Kito baroh ngi don ha kane ka jinghikai.
05:55 Ngi la pule shaphang-
05:56 File handling bad ki functions harum:
05:59 write() function, read() function
06:02 mopen() , mclose().
06:05 Peit ia ka video ba don ka link harum.
06:08 Ka kyllum lang ia ka Spoken Tutorial project.
06:11 Lada phim don ia ka bandwidth ba biang , phi lah ban shu download bad peit ia ka.
06:14 Ka kynhun jong ka Spoken Tutorial:
06:17 Ka pynlong ia ki workshops da kaba pyndonkam da ki Spoken Tutorials.
06:20 Ka ai certificates sha kito ba pass bha ha ka online test.
06:23 Na ka bynta ki jingtp ba bniah, sngewbha thoh sha ka contact@spoken-tutorial.org.
06:30 Spoken Tutorial Project kadei shibynta jong ka Talk to A Teacher project.
06:34 La kyrshan ia ka da ka National Mission on Education lyngba ka ICT,MHRD,Sorkar India.
06:41 Kham bun ki jingtip halor kane ka mission kidon ha ka http://spoken-tutorial.org/NMEICT-Intro.
06:50 Nga i Meboreen na Shillong, nga pynkut ia kane.
06:54 Khublei shibun ia ka jingsnohkti lang jong phi.

Contributors and Content Editors

Meboreen Mary, PoojaMoolya