Re: Using VisualBasic 6 Random Access Files in dotnet




Right.  The names of the binary types have changed, but the actual binary
formats haven't.

so

int oh_here;
using (Stream s = new FileStream(@"c:\vb6lostdata.bin",
FileMode.Open)) {
while ((oh_here = s.ReadByte()) != -1) {Console.Write("'{0}'",
(char)oh_here);}}

wont work?

I tought all data in a file where binary data... silly me...
just had some problems with writing notepad 'åäö' and then reading
them in c#
//CY
.



Relevant Pages

  • Re: Using VisualBasic 6 Random Access Files in dotnet
    ... int oh_here; ... I tought all data in a file where binary data... ... I dont have it ... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Options when it comes to searching dates?
    ... declare @date int ... declare @time int ... You must parse and then be ... > Can I assume that you are referring to free-form date formats, ...
    (microsoft.public.sqlserver.fulltext)
  • Re: GDI+ Image::Save() function returns InvalidParameter
    ... If that fails, ... It should be image data in one of the formats GDI+ understands, ... massage it into one of the formats compatible with Windows bitmaps, ... could use Bitmapor Bitmap(int, int, int, ...
    (microsoft.public.vc.language)
  • Re: double cast to int reliable?
    ... If int is 32 bits no. ... A IEEE double can hold 53 bits of precision ... deal with non-IEEE floating point formats. ... match IEEE requirements, but do meet the requirements of the C ...
    (comp.lang.c)
  • Re: Is this doable in MS C?
    ... Should I also stay away from 64-bit compiler, where int and char* ... But if you are referring to va_list? ... for formats with int arguments. ...
    (microsoft.public.vc.language)