This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.data | |
wmsg : .asciiz "welcome \nstudent : Mohmmad Eyad Arnabeh \nNum : 345 \n" | |
getmsg : .asciiz "Please Enter a statment : \n" | |
msg0 : .asciiz "your sentence is : " | |
msg1 : .asciiz "Please Enter a character :\n" | |
msg2 : .asciiz "your char is :\n" | |
msg3 : .asciiz "\nnot found \n" | |
str : .space 256 | |
chr : .space 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example #1 | |
// Read the file as one string. | |
string text = System.IO.File.ReadAllText(@"C:\text.txt"); | |
textBox1.Text = text; | |
/** *************************************** **/ | |
// Example #2 | |
// Write to the file from string. |