Line Break or New Line : I hope you understand what it is, in HTML you use <br> tag to make a new line so in Java if you want to make a new line it's not that hard but it has several methods depends on the platform.
Coming to the point, most...
Home » Posts filed under snippets
How To Make a Line Break/New Line in Java
in
java,
java programming,
programming,
snippet,
snippets,
tutorial
- By
Mohamed Shimran
- on 1/16/2014
- 60 comments
How To Read A Text File Hosted Online To A String
So I got a email asking how to do this, I haven't done this before so went through some Google searches and found how to do this. It was pretty easy. I'll just share the code here maybe it'll be useful for someone.
You need these namespaces...
How To Check If Directory Exists In VB.NET And C#

I have had some hard times in solving this problem not these days but sometime ago when I started programming so I think this would be helpful for anyone who has started programming..
Here's the code to check if the directory exists in VB.NET :
Try
...
Snippet : Using Regular Expressions in Java
This snippet helps you to use Regular Expression(Regex) in Java...
Snippet : Get ASCII Value For Every Characters
This snippet helps you to get the ASCII value for every character...
Snippet : Javascript onmouseover and onmouseout
This snippet helps you to make buttons etc.. I have been using this for Download Button...
Snippet : Base64 Encode and Base64 Decode in PHP
This snippet helps you to encode and decode your text with base64.
Base64 is a group of similar encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The Base64 term originates from a...
Snippet : TinyURL API in PHP
This snippet helps you to shorten your URLs with TinyURL API(Function with usage)
<?php
function TinyURL($url){
return file_get_contents('http://tinyurl.com/api-create.php?url='.$url);
}
echo TinyURL('http://www.ultimateprogrammingtutorials.info');
?>
You...
Snippet : HTTP Redirection In PHP
This snippet helps you to redirect to another website/webpage.
<?php
header('Location: http://www.example.com');
?>
Replace http://www.example.com with your website URL/webpage U...
Snippet : Detect HTTP User Agent in PHP
The code below helps you to detect the HTTP user agent I mean the browser version.
<?php
$useragent = $_SERVER['HTTP_USER_AGENT'];
echo "<b>User Agent </b>: ".$useragent;
?>
Return
User...
Useful Snippets For C#
Opening another form
new Form2().Show();
Minimize Form
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
Maximize Form
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
Copy A File
File.Copy("C://program...