The file has to be a file of string. If it's a file of struct (of a struct defined in the program that created the file) you can't read it into a string and expect good results. (If it's a file of struct, price and ratio are probably numeric variables. Reading them into a string - if it doesn't blow up - will give unpredictable results.) If the file is a file of struct, read it into the same struct that wrote it the first time.
No comments:
Post a Comment