think we require more details of the project
is the data in text form or binary? give us an example?
what is the source of the data? host PC, attached serial device, etc?
what Arduino are you planning to use?
have a read of arduino serial-input-basics-updated