Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
C#
2021-09-06 18:03:02
parsing object from text file c#
class Program { static void Main(string[] args) { var servers = new Dictionary<string, Server>(); // parse results are here using (var fs = File.OpenRead(@"G:\tmp\so\parse.txt")) { using (var reader = ne...
Add solution
Java
2021-09-06 17:20:03
how to delete character in string java
# subString(int start, int end); String a = "Hello!"; b = a.subString(0,a.length()-1) #Remove the last String # b should be "Hello" then
Add solution
Javascript
2021-09-05 03:15:03
get substring from start and end index in js
let str = "Hello world!"; str.substring(1, 4) // Returns "ell"
Add solution
Html
2021-09-04 12:40:02
vuetify truncate text
filters: { truncate: function (text, length, suffix) { if (text.length > length) { return text.substring(0, length) + suffix; } else { return text; } }, }
Add solution
C#
2021-09-04 07:24:01
remove all text after string c#
string input = "text?here"; int index = input.LastIndexOf("?"); // Character to remove "?" if (index > 0) input = input.Substring(0, index); // This will remove all text after character ?
Add solution
Javascript
2021-09-03 10:33:02
how to create a cookie in javascript
function setCookie(name,value,days) { var expires = ""; if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); } ...
Add solution
Javascript
2021-09-02 12:01:03
javascript remove first character from string
let str = " hello"; str = str.substring(1);
Add solution
Java
2021-09-01 04:50:02
java how to read file extension
private static String getFileExtension(File file) { String extension = ""; try { if (file != null && file.exists()) { String name = file.getName(); extension = name.substr...
Add solution
Other
2021-09-01 01:44:02
flutter cut string
var string = 'dartlang'; string.substring(1); // 'artlang' string.substring(1, 4); // 'art'
Add solution
Dart
2021-08-31 23:10:02
flutter remove last caracter from string
public static String removeLastCharacter(String str) { String result = null; if ((str != null) && (str.length() > 0)) { result = str.substring(0, str.length() - 1); } return result; }
Add solution
‹
1
2
...
17
18
19
20
21
22
23
24
25
26
›
Best helpers
daily
weekly
monthly
for 3 months
Ranking is empty
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.