Anonymous
public cpp v1 · immutable#include<iostream>#include<fstream>#include<stdio>int main(){fstream file;file.open("test.txt",ios::out);file<<"this is a\tfile";file.close();file.open("test.txt",ios::in|ios::nocreate);char temp1; while(!file.eof()) { file.get(temp1); if(temp1!=' '||temp1!='\t'||temp1!='\n') //checking for blank, newline and tab cout<<temp1; else cout<<"\n"; }file.close();return 0;}