4. */
import java.io.*;
public class ReadFileInToString {
public static void main(String[] args) {
//create file object
File file = new File("C://FileIO//ReadFile.txt");
BufferedInputStream bin = null;
try
{
//create FileInputStream object
FileInputStream fin = new FileInputStream(file);
//create object of BufferedInputStream
bin = new BufferedInputStream(fin);
//create a byte array
byte[] contents = new byte[1024];
int bytesRead=0;
String strFileContents;
while( (bytesRead = bin.read(contents)) != -1){
strFileContents = new String(contents, 0, bytesRead);
System.out.print(strFileContents);
}
}
catch(FileNotFoundException e)
{
System.out.println("File not found" + e);
}
catch(IOException ioe)
{
System.out.println("Exception while reading the file "
+ ioe);
}
finally
{
//close the BufferedInputStream using close method
try{
if(bin != null)
bin.close();
}catch(IOException ioe)
{
System.out.println("Error while closing the stream :"
+ ioe);
}
}
}
}
/*000
5. ―The proposal earned more money in the
short-term and created more suitable
northern spotted owl habitat in the long-
term without a significant decrease in the
long-term sustainable harvest.”
9. ... And so is New Brunswick’s
NB Indexed GDP Growth by Sector
160%
Manufacturing [31-33]
150%
140% Retail trade [44-45]
130%
Construction [23]
120%
Transportation and warehousing [48-49]
110%
100% Information and communication
technologies (ICT)
90%
Agriculture, forestry, fishing and hunting
[11]
80%
Mining and oil and gas extraction [21]
70%
2001 2002 2003 2004 2005 2006 2007 2008 2009 2010
10. NB’s Tech Sector is Large
2010 – New Brunswick GDP By Sector ($B)
Mining and oil and gas extraction [21]
Accommodation and food services [72]
Administrative and support, waste management and remediation …
Other services (except public administration) [81]
Professional, scientific and technical services [54]
Utilities [22]
Agriculture, forestry, fishing and hunting [11]
Information and communication technologies (ICT)
Wholesale trade [41]
Transportation and warehousing [48-49]
Construction [23]
Retail trade [44-45]
Health care and social assistance [62]
Manufacturing [31-33]
Finance and insurance, real estate and renting and leasing and …
0 500 1,000 1,500 2,000 2,500 3,000 3,500 4,000 4,500
12. ... Lot’s of Jobs ...
No. of Advertised Positions during Past 2 Months
Career Beacon – Jan 9, 2012
Sales
Information Technology (ICT)
Customer Service/Contact Centre
Engineering/Eng Technologist
General Management
Health Care
Marketing
Logistics and Distribution
Operations/Manufacturing
Trades
Retail
Accounting/Financial
Admin/Support
Nursing
Insurance
Education
Food & Beverage
Financial Services
Social Sciences
Human Resources
Tourism
Other
Legal & Justice
Bio Tech & Pharma
Military
Marine
Sciences
Real Estate
Oil & Gas
Volunteer
Environment
Geomatics
Agriculture & Forestry
0 20 40 60 80 100 120 140 160
13. ... and They Pay Very Well
New Brunswick Average
Compensation by Occupation - 2010
ICT
FIRE
Fishing, hunting and trapping
Forestry and logging
Wholesale trade
Wood product manufacturing
Transportation and
warehousing
Food manufacturing
Retail trade
Crop and animal production
$0 $10,000 $20,000 $30,000 $40,000 $50,000 $60,000 $70,000
$ per Year
14. There’s also a wide variety
Community
of jobs available Community Manager (UK)
Marketing
Product Marketing Manager – Competitive Intelligence
Professional Services
Senior Analyst, Professional Services
Social Media Traffic Coordinator
Social Media Analyst
Training
Trainer
Customer Success
Director, Customer Success Management
Customer Success Manager (UK)
Customer Success Manager (US)
Customer Success Manager (Toronto, ON)
Customer Success Manager
Sales
Account Executive
Sales Engineer
Sales Director
VP, Sales Engineering
VP, Corporate Sales
Senior Account Executive
Account Executive (UK)
Business Development Manager (UK)
Account Executive – Australia
Lead Gen
Enterprise Business Representative
Manager, Enterprise Business Representatives
Product Management
Senior Product Manager
Research and Development
User Experience Designer
Quality Assurance Specialists
Java Developer
User Interface Developer (Adobe Flex/Flash)
Senior Mobile Software Developer
HTML5 Developer
Project Manager
16. The Tech Sector Can be
Characterized as having:
Very high rates of growth
Lots of high paying employment
Broad spectrum of skills in demand
Significant potential for community and personal
wealth-creation
24. Technology can help strengthen the People,
but to do so, you must embrace it.
Editor's Notes
Using an interactive map quest, The Meeting Place addresses a variety of topics including: bullying, smoking, alcohol, solvents, family violence, suicide, drugs, depression and anxiety. The map walks children down paths that they may encounter in their own communities and daily lives, and introduces them to community settings and characters that represent lessons to be learned about making good choices. Content and functionality helps children identify where to go for help in various scenarios. Intended for children aged 10 and older, this program was developed and designed by CAMH in partnership with BitcastersWith progressive layers of difficulty, 60 activities take young users from basic knowledge of the alphabet through simple reading and writing and on to more complex comprehension and understanding. The program includes vowel and consonant recognition, word matching, sounds, and comprehension. Designed by Ekomini, the program awards points and allows children to track their scores as they would in an online game.The basics of money management are offered through a series of activities and games addressing investment, want versus need, saving and the value of money. Children must manoeuvre through a small town with 4 different characters, gaining points along the way and experiencing various scenarios such as operating an ice cream business, work around the home, banking money and giving back to their community.A high energy and up-beat action program, Swift Feet encourages children to be active. 20 different exercises and 10 different dances set to music take users through high, moderate and low impact movements. A post-session quiz assesses each child’s knowledge of physical fitness and helps measure knowledge retention and improvement. This program was designed by ParticipACTION Canada in cooperation with Ophea.Based on Canada’s Aboriginal Food Guide Healthy Heart helps children assess their recommended daily intake of food. Stylized bear avatars teach children to act as “chefs” to choose food from a menu that represents the correct daily intake and prepare meals for their customers, all while learning more about healthy eating. Canada’s Aboriginal Food Guide was provided by Health Canada.Buffy Sainte-Marie walks children through the Nature of Sound and Native American/Aboriginal Instruments in order to introduce children to what sound is, the characteristic of sound, wavelengths and how sound travels. Hands-on experiments and a vocabulary resource provide students with a working knowledge of words and meaning, as well as an understanding of Indigenous, Aboriginal, Native American music and sound terminology. This program was modified for OLPC Canada by Buffy Sainte-MarieThrough stories about frozen and free-flowing water, children learn the importance of safe water behaviour and begin to understand what can happen if poor choices are made. Quizzes test comprehension and emphasize good water safety choices. This program was designed by Safe Kids Canada