Altera_Forum
Honored Contributor
12 years agoreading integer values representing an image from file
hii..
i'm trying to read ".txt" file representing an image, contains integer value like that.. 0 0 0 0 23 163 145 149 154 154 154 155 155 156 156 156 158 158 158 158 158 158 158 ......150 149 149 148 148 148 148 151 143 139 140 102 0 0 0 0 0 0 23 163 145 149 154 154 154 155 155 156 156 156 158 158 158 158 158 158 158 ......150 149 149 148 148 148 148 151 143 139 140 102 0 0 0 0 0 0 23 163 145 149 154 154 154 155 155 156 156 156 158 158 158 158 158 158 158 ......150 149 149 148 148 148 148 151 143 139 140 102 0 0 0 0 0 0 23 162 145 149 154 154 154 155 155 156 156 156 158 158 158 158 158 158 158 ......150 149 149 148 148 148 148 151 143 139 140 102 0 0 ....... ........... .......... 0 0 0 0 0 158 136 128 141 141 141 141 141 141 141 142 144 144 144 144 144 144 144 .......140 140 140 140 140 140 143 139 125 141 129 106 0 0 0 0 0 0 0 143 136 134 136 136 136 136 136 136 136 138 142 142 142 142 142 142 142 .......140 140 140 140 140 140 140 140 130 141 129 104 0 0 0 0 0 0 0 147 139 126 140 140 140 140 140 140 140 141 141 141 141 141 141 141 141 .......140 140 140 140 140 140 141 143 136 134 127 102 0 0 0 0 0 0 0 148 132 134 140 140 140 140 140 140 140 141 138 138 138 138 138 138 138 .......135 135 135 135 135 135 129 135 135 132 133 106 0 0 0 0 0 0 0 143 113 137 141 141 141 141 141 141 141 142 145 145 145 145 145 145 145 .......137 137 137 137 137 137 136 139 136 128 130 102 0 0 0 0 0 0 0 149 118 123 137 137 137 137 137 137 137 139 145 145 145 145 145 145 145 .......132 132 132 132 132 132 123 130 129 126 126 94 0 0 0 0 0 0 14 129 129 123 136 136 136 136 136 136 136 138 139 139 139 139 139 139 139 .......0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ....... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 but whenever i start simulation i got this warning : )TEXTIO procedure READ(INTEGER) : Parameter L designates an empty string) hence it is not the estimated output i thought i was getting this warning since the entire data is integer and i'm declaring my file like this (file testing_read: text open read_mode is "abc.txt" ) so i changed it to be like that ( type integer_file is file of integer; .... file testing_read: integer_file open read_mode is "abc.txt"; ) after which i got this error when compiling: (No feasible entries for subprogram "READLINE".) I would be so happy for your reply.. thanks, Niveen..