Skip to content

Instantly share code, notes, and snippets.

View DanielFerguson's full-sized avatar

Daniel Ferguson DanielFerguson

View GitHub Profile
##Version 0.2.0
##Date: 21/06/2016
##Author: Daniel Ferguson
#Added
[+] Added Parse Framework
[+] Added Parse User Background
[+] Added Parse Logout to Dashboard.XML
#Removed
[-] Removed Many, Many “TODO”s
#Important To-Dos:
@DanielFerguson
DanielFerguson / Volume2.cs
Last active February 18, 2016 01:01
C# Code Notes (Volume 2)
// SYSTEM IO - Reading from a text file (.txt)
// Read the file as one string.
string text = System.IO.File.ReadAllText(@"C:\Users\Public\TestFolder\WriteText.txt");
// DISPLAY the file contents to the console. Variable text is a string
System.Console.WriteLine("Contents of WriteText.txt = {0}", text);
// READ each line of the file into a string array. Each element of the array is one line of the file
string[] lines = System.IO.File.ReadAllLines(@"C:\Users\Public\TestFolder\WriteLines2.txt");
@DanielFerguson
DanielFerguson / Volume1.cs
Last active February 14, 2016 08:20
C# Code Notes (Volume 1)
// Init a data type
int intName;
string stringName;
double doubleName;
float floatName;
// Creates a CONST variable - cannot be modified, or reassigned
const int intName;
// Show a MessageBox