displaying first character in every line

How to display the first character of every line of a file?

Please anyone help me
Do you know how to open a file and display all lines? (post code).
read the file character by character and check them by '\n' ( if(ch=='\n') )...icrease the pointer and display the next char.....and so on
Topic archived. No new replies allowed.