Karthikeya Boyini has Published 1385 Articles
karthikeya Boyini
27K+ Views
EOFEOF stands for End of File. The function getc() returns EOF, on success..Here is an example of EOF in C language, Let’s say we have "new.txt" file with the following content.This is demo! This is demo!Now, let us see the example.Example#include int main() { FILE *f = fopen("new.txt", ... Read More
karthikeya Boyini
26K+ Views
This is a C++ program to read file line by line.Inputtpoint.txt is having initial content as "Tutorials point."OutputTutorials point.AlgorithmBegin Create an object newfile against the class fstream. Call open() method to open a file “tpoint.txt” to perform write operation using object newfile. If file is open then ... Read More
karthikeya Boyini
34K+ Views
Let’s say the following is our string.String str = " This is demo text, and demo line!";To split a string with comma, use the split() method in Java.str.split("[, ]", 0);The following is the complete example.Example Live Demopublic class Demo { public static void main(String[] args) { String str = "This is demo text, and demo line!"; ... Read More
karthikeya Boyini
46K+ Views
To convert an integer to string in C#, use the ToString() method.Set the integer for which you want the string −int num = 299;Use the ToString() method to convert Integer to String −String s; int num = 299; s = num.ToString();ExampleYou can try to run the following code to convert ... Read More
karthikeya Boyini
56K+ Views
FloatFloat is a datatype which is used to represent the floating point numbers. It is a 32-bit IEEE 754 single precision floating point number (1-bit for the sign, 8-bit for exponent, 23*-bit for the value. It has 6 decimal digits of precision.Here is the syntax of float in C language, ... Read More
karthikeya Boyini
242 Views
Have you remembered your first book, the first lessons as a kid? Probably you may not recall the text written over there, but one thing you can surely recall that there were attractive images of animals, vehicles, fruits, vegetables and much more, isn’t it? And what about those videos of ... Read More
karthikeya Boyini
279 Views
Facebook, a very popular social networking site, that helps you connect with people. Some of you are well acquainted with and some you don’t, still you get a chance to make new friends and we learn a lot of things, updates on latest movies’ gossip and the list goes on. ... Read More
karthikeya Boyini
545 Views
In this highly competitive world, increasing population of educated people and explosion of media and communication, selecting a career is like walking on a sharpened sword. This is so true for the IT industry, as statistically, the competition is more in this industry. There are numerous or so shall I ... Read More
karthikeya Boyini
252 Views
In this era of digital technology, we are habituated of things being handy. like you don’t know something – Google it, and we don’t need an iPad or a laptop for googling things, just a smartphone that comes with this smart technology. In fact, we may forget to have breakfast ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP