I would like to convert a file that contained few DNA sequences into binary values which is as follow: FileA.txt Desired output I have tried using this code to solve my problem but the bin output file seem failed to output my desired answer. Can anyone help me? Code Answer Do you want ascii output or binary? The below will