Skip to content

Instantly share code, notes, and snippets.

View shangeethsivan's full-sized avatar
🧩
Programmer by Profession, Problem Solver by Heart

Shangeeth Sivan shangeethsivan

🧩
Programmer by Profession, Problem Solver by Heart
  • Chennai
View GitHub Profile
@shangeethsivan
shangeethsivan / FileOperationC++
Last active January 1, 2017 08:51
File Operation in C++
int writedatatoFile(){
std::ofstream file("c:\\demo.dat",std::ios_base::app);
if(file.is_open()){// IF EXITS OPEN AND APPEND DATA
string data="dummy";
file<<dummy<<endl;
file.close();
return 1;
}
else{// Create a file
try{
viewpager.setPageMargin(30);
/**
*Clip to Padding - Sets whether this ViewGroup will clip its children to
*its padding and resize (but not clip) any EdgeEffect to the padded region, if padding is present.
*/
viewpager.setClipToPadding(false);
viewpager.setPadding(120, 0, 120, 0);