Nov

14

import java.io.*;
class FileTest{
public static void main(String ar[])throws IOException{
FileInputStream fis=new FileInputStream(“ab.txt”);
int i=fis.read();
while(i!=-1){
System.out.print((char)i);
i=fis.read();
}
}
}

//————————————————————–
import java.io.*;
class FileTest2{
public static void main(String ar[])throws IOException{
Console c=System.console();
String fname=c.readLine(“Enter File Name: “);
FileInputStream fis=new FileInputStream(fname);
int i=fis.read();
while(i!=-1){
System.out.print((char)i);
i=fis.read();
}
}
}
//—————————————————————-
import java.io.*;
class FileTest3{
public static void main(String ar[])throws IOException{
Console c=System.console();
String fname=c.readLine(“Enter File Name: “);
int j=fname.lastIndexOf(‘.’);
String s=fname.substring(j);
if(s.equalsIgnoreCase(“.c”)||s.equalsIgnoreCase(“.cpp”)||s.equalsIgnoreCase(“.java”)){
int o=0,k=0;
FileInputStream fis=new FileInputStream(fname);
int i=fis.read();
while(i!=-1){
if((char)i=='{‘)
o++;
if((char)i==’}’)
k++;
i=fis.read();
}
System.out.print(“{=”+o+” }=”+k);
}
else{
System.out.print(“Given File is not C/Cpp/java file”);
}
}
}
//——————————————————————
import java.io.*;
class FileTest3{
public static void main(String ar[])throws IOException{
Console c=System.console();
String fname=c.readLine(“Enter File Name: “);
int j=fname.lastIndexOf(‘.’);
String s=fname.substring(j);
if(s.equalsIgnoreCase(“.c”)||s.equalsIgnoreCase(“.cpp”)||s.equalsIgnoreCase(“.java”)){
int o=0,k=0;
FileInputStream fis=new FileInputStream(fname);
int i=fis.read();
while(i!=-1){
if((char)i=='{‘)
o++;
if((char)i==’}’)
k++;
i=fis.read();
}
System.out.print(“{=”+o+” }=”+k);
}
else{
System.out.print(“Given File is not C/Cpp/java file”);
}
}
}
//———————————————————————–
import java.io.*;
class FileTest5{
public static void main(String ar[])throws IOException{
Console c=System.console();
String fname=c.readLine(“Enter File Name: “);
FileInputStream fis=new FileInputStream(fname);
int i=fis.read();
while(i!=-1){
char ch=(char)i;
String st=ch+””;
st=st.toUpperCase();
System.out.print(st);
i=fis.read();
}
}
}
//—————————————————————–
import java.io.*;
class FileTest6{
public static void main(String ar[])throws IOException{
Console c=System.console();
String fname=c.readLine(“Enter From File Name: “);
String tname=c.readLine(“Enter To File Name: “);
FileInputStream fis=new FileInputStream(fname);
FileOutputStream fos=new FileOutputStream(tname);
int i=fis.read();
while(i!=-1){
fos.write(i);
i=fis.read();
}
}
}
//———————————————————————–

Sep

06

Aug

10

Campus Commune is a professional network rolled out by TCS for the academic community. It has been acknowledged and appreciated by the student community across India as an effective tool for collaboration. sharing, learning and exploration.

TCS Campus Commune has launched Code Vita (the biggest Coding Contest in India) on 22nd July,13. This contest shall be open to all the students( FY 14,15 and 16 and 17 batches) of your esteemed Institutions. Request you to kindly ask the students from FY 14,15,16 and 17 batch to subscribe to the portal. The process of launching Campus Commune has been attached below. Please share it with all the students at your Institute. The students registering on this portal from a TCS non accredited Institute are called Direct Candidates.

The contest will provide the candidates a competition platform on a national level to test their talents and they will witness a really enriching learning experience.

�The Registration and Team Formation process for Code Vita is open till 12th August,13.

The subscription to TCS Campus Commune is a prerequisite to register and participate in Code Vita. The subscription to Campus Commune is free of cost. Please see the attachment below which needs to be supplemented with the process of launching Campus Commune and sent across to the students.�

FOR MORE DETAILS CLICK THE FOLLOWING URLS:-

Codevita_Participation_Guidelines_For_Direct_Trainees

CodeVita_2013_Registration_and_Team_Formation

Feb

14

Congratulations MCA 2011-14 and MCA 2010-10 batch SMS,VaranasiCongratulations to all MCA 2011-14 and MCA 2010-13 batch Students of School of Management Sciences, Varanasi for their good performance in Semester Examination Results.

 

Wish you all the best…

Filled Under: General

Feb

13

Congratulations MCA 2012-15 batch School of Management Sciences, Varanasi

Congratulations MCA 2012-15 batch School of Management Sciences, Varanasi for their 1st semester results. You did well in MCA-113 : COMPUTER CONCEPTS AND PROGRAMMING IN C, keep it up and try to improve more and more your programming skills.

All the best.

Filled Under: General