Encoding.ASCII.GetBytes in F# for Array of Bytes (Ascii string)

Published on August 5, 2014 by abundantcode

Filed under F#

Last modified August 5, 2014

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 6650 times

Below is a sample code snippet demonstrating the usage of the “B” to define a ASCII string in F# . This technique is somewhat similar to Encoding.ASCII.GetBytes in F#.

Encoding.ASCII.GetBytes in F# for Array of Bytes (Ascii string)

// AbundantCode F# Tutorials and Code snippets
open System
let main argv = 
    let asciistringvalue = "Free Programming Tutorials on F#"
    let retval = Console.ReadLine()
    0 // return an integer exit code


Leave a Comment


You might be Interested in these Posts

Video - Angular Router - Brian Ford

Video - Angular Router - Brian Ford http://www.youtube.com/watch?v=sfV0ApyN5fM ...

Video - An Angular2 Todo App: First look at App Development in Angular2

In this screencast , David East , one of the core contributor of the Angular provides a glimpse of A...

Video - Getting started with Angular 2

In this screencast , Alex Eagle , developer on the Angular team talks about Angular 2 developer prev...