reading input files.

hello everyone..... i need to read to read text file(containing assembly code) and store the data line by line into a string and then access the string one by one and convert the code in equivalent machine code.Can anyone help me as to how to store the lines in different strings and access them separately.....
So if I understand correctly you don't know how to store a file's content's line by line, but you want to write an assembler?
heyy..yeah well...m able to read first line and convert it...but the code is not reading the 2nd line....
Then post your code, we can't help you if we don't see what you do wrong.
Topic archived. No new replies allowed.