This is a bit of a noobie question but here goes.
I want to use Blockread to find a file and then display its contents. Using the D5 example, it uses an OpenDialog and the SaveDialog. Fine, but how do I display fields from with the file. The output can be a memo, Grid or whatever.
It's been ages since I used Delphi so be gentle
What I'm trying to do is read a file that has an inventory of items which are seperated with I believe null characters. It looks much like a flat file. I can now read the first item by reading each single letter from Buf and concatenating it and then assiging it to an editbox text. But whatever I do I can't go beyond the first item.
Is there a simple way to open a file, examine it's contents and then list the English text and ignore all the spurious characters ?
I want to use Blockread to find a file and then display its contents. Using the D5 example, it uses an OpenDialog and the SaveDialog. Fine, but how do I display fields from with the file. The output can be a memo, Grid or whatever.
It's been ages since I used Delphi so be gentle
What I'm trying to do is read a file that has an inventory of items which are seperated with I believe null characters. It looks much like a flat file. I can now read the first item by reading each single letter from Buf and concatenating it and then assiging it to an editbox text. But whatever I do I can't go beyond the first item.
Is there a simple way to open a file, examine it's contents and then list the English text and ignore all the spurious characters ?