i like how you explain what each and every one of your code does. this really helps my learning experience as i waste 20:44 min of my life basically learning nothing
@ronaldabellano56435 жыл бұрын
I like the variety of how you create an instance of a stream.
@ivanpersons18134 жыл бұрын
I like that you get write (pun intended) to the point and not waste time, telling us useless information about anything and everything.
@derekbanas4 жыл бұрын
I do my best to not waste peoples time :)
@xceinie7 ай бұрын
I gave this video a like within the first 19 seconds. Why? Because you clearly laid out your video in a nice way, and your title is descriptive and helpful for understanding that what you're going to go over will likely help me. I appreciate it!
@HodgePigChannel6 жыл бұрын
First video I've watched but will definitely watch the others. By far the most informative and well laid out tutorial I've seen. Straight to the point and clearly shows how methods can be used.
@derekbanas6 жыл бұрын
Thank you for the compliment :)
@michaelsheldrew18183 жыл бұрын
Derek, i appreciate your straight to the point and condensed information. I have to watch them a few times but i would rather it be that way that slower. This seems to be your style and you seem to be the only one i can find on KZbin that condenses this information in such a concise and direct manner. I enjoy your wide variety of examples and the many options that you show us so that we can then choose what we need. I would like this video a million more times but unfortunately it only lets me like it once.
@derekbanas3 жыл бұрын
Thank you for the very nice message :) Yes I go out of my way to be different from the other channels on YT. I think I'm the only person that covers such a wide range of topics and who makes heavily edited long videos. I'm glad you like them.
@eladmizrahi84617 жыл бұрын
Great as always, Thanks for those tutorials! I've learned so much from your channel :)
@derekbanas7 жыл бұрын
Thank you :) I'm very happy to hear that!
@Antheius5 жыл бұрын
Derek Banas - The savior of computer science students. Also, platinum :D
@derekbanas5 жыл бұрын
Thank you :) I'm happy to be of service
@clashgamerxp85077 жыл бұрын
best C# tutorial series out there :P thanks :)
@derekbanas7 жыл бұрын
Thank you :) I'm trying to cover everything
@clashgamerxp85077 жыл бұрын
Derek Banas ik and you're doing a remarkable job at it :) so thank you :)
@CanadianMang6 жыл бұрын
Derek I wish you would make these videos twice as long and really take more time in explaining everything slower. These videos seem so rushed. I really like the videos but I always need to rewind and pause. Also you seem to gloss overthings when really if you explained them in detail I think people would learn better from watching these videos.
@oz70755 жыл бұрын
Can't agree enough with you, Erik. Luckily for me, I knew some of these things and watching this video helped me refresh and definitely take in new stuff faster, though sometimes this formula is not the best. This said, I want to thank Derek for taking the time to do this series of videos that I will watch every and now and then.
@Lunsterful7 жыл бұрын
Small error at about 3:40 - new DirectoryInfo() does not create a new directory on the file system. Check the .Exists property. Needs to be done with Directory.CreateDirectory. Otherwise nice work.
@derekbanas7 жыл бұрын
Whoops sorry about that
@SpeedyBangBong7 жыл бұрын
Lunsterful, I was looking for that comment! Thanks. Derek, watched all the C# videos (and much more) big thanks for your amazing work!
@flowerpower19516 жыл бұрын
@@derekbanas Just learning C# - instead of the suggested "Directory.CreateDirectory" I have used "dataDir.Create(); seems to work OK
@mariopellegrino76615 жыл бұрын
I should've looked at the comments before panicking lol. It wasn't working for me, and I ended up looking all around the Internet for why it wasn't working and found your solution along the way. Thanks for pointing this out!
@RP-mp4ow5 жыл бұрын
THANK YOU SO MUCH!
@dadsire-TV7 жыл бұрын
I feel so much better after watching this.
@derekbanas7 жыл бұрын
Thank you very much :) I'm happy that you liked it
@salmali9039 Жыл бұрын
Do you can solve this; Build Application that has three classes (three user data types). Every class has some of attributes and methods to manipulate the objects of these classes. The objects and their data can be saved permanently into Files. Every class have to save in three forms of files: 1. Object Stream. 2. Data Stream. 3. Random Access File Stream. Data can be brought mainly from csv file. Every record consists of multiple fields, and every line has only one record,
@ajacobs1007 жыл бұрын
i always listen to derek banas in x2 speed ;P
@derekbanas7 жыл бұрын
That's funny :)
@chukwuka-steveorefo18126 жыл бұрын
so do I!
@Onomandah6 жыл бұрын
It doesn't make any sense. Why would anyone do that? You can't understand anything like that!
@TheBanditSlick6 жыл бұрын
x1.5 for me
@xaviercomelli6 жыл бұрын
Ok tutorial -but it would be more useful if time were explained on why things work one way instead of just showing...
@stavrostsirlidis39212 жыл бұрын
Awsome! Thx for really good explaination!
@derekbanas2 жыл бұрын
Thank you :) I'm happy you enjoyed it
@exact-itacademy12826 жыл бұрын
I really like the you speak your american english! like someone talking to his own heart
@derekbanas6 жыл бұрын
Thank you :)
@HaldunT4 жыл бұрын
You are great. Thanks for teach us.
@derekbanas4 жыл бұрын
Thank you for the compliment :) It is my pleasure to help
@tobiasvinblad51396 жыл бұрын
Thank you for your well-made video. I really learned something👌👍
@derekbanas6 жыл бұрын
I'm very happy I could help :)
@saalam68806 жыл бұрын
A question, when Reading data with filestreams, Why is it we need to create an additional bytearray to store the bytes from rsByteArray, Why not just get the rsByteArray and use the .GetString function on that?
@orthodox-4-ever7 жыл бұрын
Dont give up Derek! :-)
@derekbanas7 жыл бұрын
I've been doing this for 7 years and I don't plan on quitting :)
@Felm847 жыл бұрын
First of all, thank you for the videos Derek. Would you mind to teach us serialize and deserialize data with C#? Thank you.
@derekbanas7 жыл бұрын
I'm happy to help and plan on covering that in the next video :)
@stevefrt94956 жыл бұрын
Thanks you so much Derek your video are the best
@SunnyApples7 жыл бұрын
Thank you kindly for another amazing video. :)
@derekbanas7 жыл бұрын
You're very welcome :) Thank you
@caesar33465 жыл бұрын
I can not speak and understand english. But dont know why I've understood this SYSTEM IO
@eluneth39257 жыл бұрын
Hey derek!, do you have any tutorial for c# form application?. As always great video! :)
@derekbanas7 жыл бұрын
Thank you :) WPF and XAML is coming next week
@tim-timman88687 жыл бұрын
You're videos are great both for leaning and refreshing. Keep up the good work. Would it be simple enough to cover how to read data from input devices using C# (particularly gamepads)? Also platinum!
@derekbanas7 жыл бұрын
Thank you very much :) Sure I'll cover how to handle input. I'll start making games soon
@frasermanley99035 жыл бұрын
Is it possible to create and write to a text document as a different user? I'm building a digital forensic challenge creation toolkit using C# and powershell. I require the use of administration access to manipulate the flow of time within the toolkit however I would be interested if it were possible to write files as a standard user using the system.io library. I can achieve this using powershell however, the Lochard Principal really puts pressure on my design to limit any potential fingerprint where possible.
@sovanraksa21126 жыл бұрын
Great as always!
@derekbanas6 жыл бұрын
Thank you :)
@SuprunAlexey7 жыл бұрын
Derek give me please some advices how to grow up my channel with Russian audience? You are my idol.
@derekbanas7 жыл бұрын
I don't understand the videos (I don't speak Russian) and I'm not sure if you want to hear this, but you are actually doing fantastic. You grew your channel to almost 5,000 subscribers in a year. In the education space that is just about the best you can expect. Look at my channel for an example. I have almost 600,000 subscribers, but really I only have about 2,000 fans. There is a great difference between subscribers and fans. You actually have a higher percentage of fans then I do. To increase your fans show yourself and your personality more. I wish I would have learned this lesson earlier. To most people I'm just a random voice. In your next video series try showing your face while you write code and see if the percentage drop off from video 1 improves versus video 2. That is the best gage of whether you are improving your videos or not. Maybe try increasing your font size a little. Your voice is great and the code is great. It takes time to build an audience. Don't make the same mistake I made. Build fans instead of subscribers.
@SuprunAlexey7 жыл бұрын
Derek Banas thank you for your answer!
@mrterrbl81846 жыл бұрын
I really appreciate this genuine answer to his question.
@timmylol64 жыл бұрын
@@derekbanas the goat for this reply
@arpitsrivstva3 жыл бұрын
@@derekbanas personally, I don't agree to your answer as a whole. I dont like people showing their faces and try to become stars or gain fans or something on a thing like KZbin by uploading random videos. That's just stupidity for me. i dont personally click those videos in which I see that kind of stuff like show off or trying to do some useless talk which increases the duration of the video. On the other hand I agree with the quality and font size thing you said. Most of the people I know, including me, are on KZbin whenever they are, just to learn something or get entertained and your channel is for learning so they only want something straightforward and to the point, which you are giving, and that's why you have such success on here.
@gabriellindemann21637 жыл бұрын
Hey Derek! I just thought, if it would perhaps be a good idea to build a community forums, or something like that, around your channel :) Just a place where we can talk and help each other, I think it would be great, especially with your comments on fan-building.
@derekbanas7 жыл бұрын
That would be great, but I'm a bit tied up right now. It is kind of hard to manage multiple comment systems. I actually had to shut the one off on my website because people kept trying to hack my site with it. I'll look into it.
@RP-mp4ow5 жыл бұрын
Platinum. Thank you for this video
@derekbanas5 жыл бұрын
I'm happy you liked it :)
@lastone12225 жыл бұрын
Thanks for the tutorial this is what I was looking for. But how can I read write and create files which are saved in individual paths? Example - someone installs the program to the disc D but in code is given dir to desktop on the disc C. Does IO system offers path reading? I know there is smth like Environment.MachineName and so on, but in this case you have to define a lot of strings to get the whole path.
@fathimashoukath48844 жыл бұрын
Why do we need to create a byte array to hold file data or fileByteArray ?can't we directly output the rsByteArray?
@patyue50126 жыл бұрын
Derek, are you based on your recommended book to make these C# tutorials? Thank you.
@derekbanas6 жыл бұрын
I have a professor friend poll students to see what books they prefer
@jonlbs73 жыл бұрын
I realize that this video is over 3 years .. I'm wondering what kind of application can read the testFile4.dat that is produced at the very end. I tried opening with Excel and LibreOffice Calc which rendered Random Text*@ and then garbleDgook.. I tried Unicode (UTF-8)..
@rodmanunderhilliii81983 жыл бұрын
What I found is.... A file with the . dat file extension is a generic data file, that stores specific information relating to the program that created the file. So I tried opening it with VS, since that is what created it. No, luck opening it that way. It's not always a text file, and it can be in use, with an app., making it hard to delete. Remember the index.dat, back in the day, that kept a log of every site you visited; I couldn't delete it, but could delete the content. So, to open the dat file, I used HxD Hex Editor app to view/edit it.
@Layarion6 жыл бұрын
Can you make a video about creating a C# RegEx Console app? I want to find and replace things in some html documents.
@derekbanas6 жыл бұрын
Sorry, but I'm not sure what you want to do
@gregocchiogrossi9067 жыл бұрын
Hi Derek, I have been having difficulty sending commands to cmd. I have tried using streamwriter and processes. Is there a different method I should be using? Thank you for your time.
@Starname647 жыл бұрын
Thanks for the tutorial! Platinum
@derekbanas7 жыл бұрын
You're very welcome :)
@cyborg62947 жыл бұрын
Do we can use these codes also with forms too or just for consoles ? Thank you so much for your fantastic work.
@derekbanas7 жыл бұрын
Yes I get into forms very soon
@cyborg62947 жыл бұрын
That would be amazing, it just where I'm studying right now as a first year in faculty, we are studying everything in WinForms, even i don't know, it is an old technology right now while already we have WPF, or it is still in use. While our professor said that WPF requires that you master a large number of quite difficult concepts before you even get around to writing a line, and you will get disheartened very quickly because of this reason. Also we choose WinForms if they have to expand the reach of their software to other operating systems. Mono/xamarin do not support WPF and it would take some time for them to. WinForms it meant to be cross platform code on C#. Also in my experience, a WPF application takes up more RAM than its Windows Forms counterpart. Also I think that with WPF we can create Windows Phone and Windows Store apps, while with WinForms we cannot, correct me if I'm wrong. You are doing a really amazing and a great job for students, enthusiasts, amateurs and for humanity after all. And sorry for my English but i will also work on it so soon to make it better.
@neelimgoswami63366 жыл бұрын
thanks for the tutorials
@KaranLobana7 жыл бұрын
Hey Derek, I want your professional opinion about a project I have undertaken. Its a frontend heavy web app and I require a good framework for this. Im thinking about using one of these: Angular2, AngularDart, VueJS, Polymer, AureliaJS. I cant decide which one to use!
@derekbanas7 жыл бұрын
Tell me more and I'll give you my opinion based on your goal
@KaranLobana7 жыл бұрын
Derek Banas Well the apps main page has a "wall" that resembles FBs wall, apart from that we have a user profile page, a page to view posts, basically the whole 9 yards of a social media app. Im not at liberty to disclose project details so I hope this will be enough.
@gabriellindemann21637 жыл бұрын
I'm actually using Vue for a similar project.
@derekbanas7 жыл бұрын
I personally would use PHP / Laravel to design a site like that, but that is just what I'm used to using
@EduardoCGarza-cp8nt7 жыл бұрын
thank you so much for this video! I'm really starting to like C#. I was wondering how you learn these languages before you make the videos?
@derekbanas7 жыл бұрын
Yes C# is great! Normally if I do a video I already know the language. If I have to learn a new language I normally get the best 2 books on the topic and read them. Then I write lots of programs while referring to the API, blogs, etc. to learn what isn't in books.
@mritunjaygiri36264 жыл бұрын
sir i am facing one problems in my asp.net project.....i use many master pages and more than 20 content pages of one master page the problem is how to manage all folders...in solution explorer there is more than 300 folders how to merge one master page and its content page in one folder. pls help me i search every where but no any result
@Onomandah6 жыл бұрын
A question. What is the @ letter before the strings? I have been googling it for 10 minutes and can't find the answer...
@Nick-jb4xi6 жыл бұрын
It treats the string as it is written. so you don't need to put slashes to make certain characters work. Although " are still an issue, because they are still used to end the verbatim string, as it is called.
@neelimgoswami63366 жыл бұрын
from which age did you start learn programming?
@derekbanas6 жыл бұрын
I started 30 years ago around the age of 10, but I didn't get serious until about 15
@niklaskarlsson2367 жыл бұрын
cool! If i come from a more "java-world" can i use dll-files and SDK from a C# project some how? (if i have the docks for the C# files) :-) thanks for your great videos!
@derekbanas7 жыл бұрын
Thank you :) Are you trying to execute C# from Java?
@niklaskarlsson2367 жыл бұрын
Yes... I have a sdk with dll:s and I like to use those functions in java..
@DxGrumpzz7 жыл бұрын
Hello Derek, I've been trying to follow this tutorial but when I use "File.WriteAllLine(TextFilepath, Customers);" it throws a "Directory not found Exception" I've tried creating a folder with windows and making a legit directory with cmd But nothing worked can you please help me.
@derekbanas7 жыл бұрын
Hello, You have a little bug. Try File.WriteAllLines(textFilePath, customers); You forgot the s
@DxGrumpzz7 жыл бұрын
I forgot to wirte the 's' in Lines in the comment but not in the code. I've managed to fix it I had to manually write "DataDir.Create()" after initiallizing "DirectoryInfo DataDir"
@derekbanas7 жыл бұрын
Great I'm glad you fixed it. Sorry I couldn't help quicker
@umarnaeem61287 жыл бұрын
What if i have a text file having two Columns of integers separated by "\t" like this: 12 23 14 56 56 67 ... .... n i want that the integers of first column gets store in an array ( Like this: x[0]=12,x[1]=14, x=[2]=56 n so on ) , and the 2nd one gets store in 2nd array, How it can be Done ? and wt class should we use for this, StreamReader, FIlestream e.t.c. . . .
@Victor_Marius5 жыл бұрын
int i = 0; int x[], y[]; foreach(string line in File. ReadAllLines(textFilePath)) { string[] s = line. Split("\t"); x[i] = Convert. ToInt32(s[0], 10); y[i++] = Convert. ToInt32(s[1], 10); }
@Rudransh-kb6qr5 жыл бұрын
File.WriteAllLines(textFilePath, customers); Error : Directory not found exception was unhandled
@derekbanas5 жыл бұрын
I have working code here www.newthinktank.com/2017/03/c-tutorial-17/
@aniruddhapoorna76495 жыл бұрын
Hi how can we read a file from the middle of the file to the top of the file??
@jerinmathew9957 жыл бұрын
I have subscribed😊
@derekbanas7 жыл бұрын
Thank you :)
@MRahman136 жыл бұрын
How can you add more text to the file after sr.Close()?
@derekbanas6 жыл бұрын
You have to open it again
@Victor_Marius5 жыл бұрын
@@derekbanas By default it appends content to the file when writing? What about rewriting from the beginning of the file. Do you have to delete and recreate it, and then to write it?
@Console.WriteLine Жыл бұрын
thanks
@definepollution43707 жыл бұрын
what is I what to make this on one computer then open it it on a different pc?
@derekbanas7 жыл бұрын
C# programs can be compiled as executables on any OS
@definepollution43707 жыл бұрын
what if the Directory is set for my pc. Not the other pc.
@AmitKumar-he3dl7 жыл бұрын
visual studio is late is there any lite weight ide for c#
@derekbanas7 жыл бұрын
Sorry I don't understand the question. What do you mean by late?
@AmitKumar-he3dl7 жыл бұрын
i mean it is resource hungry and i don't have a good setup. So it runs slower on my system
@scopestacker97877 жыл бұрын
SharpDevelop is your IDE.
@derekbanas7 жыл бұрын
Thank you for helping :)
@scopestacker97877 жыл бұрын
No problem, I'm glad I could help :-)
@stickmanbug7 жыл бұрын
Awesome. :)!
@derekbanas7 жыл бұрын
Thank you :)
@orasis7 жыл бұрын
C# Reminds me of PASCAL.
@derekbanas7 жыл бұрын
Really? I always considered it a better version of Java
@ethanpixelate7 жыл бұрын
do LUA!
@derekbanas7 жыл бұрын
Here you go kzbin.info/www/bejne/n37ElKuQhrKDjtU
@ethanpixelate7 жыл бұрын
yay!
@ellena19037 жыл бұрын
Platinum :)
@derekbanas7 жыл бұрын
Thank you :)
@jorgfloy89057 жыл бұрын
Can you do GML in one video plz
@derekbanas7 жыл бұрын
Gamemaker or Geography Markup Language?
@cajogos4 жыл бұрын
Platinum
@thehumblestudent50326 жыл бұрын
//Creating a directory DirectoryInfo newDirectory = new DirectoryInfo(@"C:\Users\etc\etc"); newDirectory.Create(); //This method will create a directory newDirectory.Delete(); //This method will delete the directory
@Rudransh-kb6qr5 жыл бұрын
I am getting a error
@treskidchris23645 жыл бұрын
File download not webclient
@sgtfireball6471 Жыл бұрын
:)
@thinhnguyen42335 жыл бұрын
viet nam
@m.k_697 жыл бұрын
I did it I am First!!!!!!!!!!!
@derekbanas7 жыл бұрын
Congratulations :) That was fast
@m.k_697 жыл бұрын
I am simple man I see your videos I click :) , and as always thank you for these good videos