Click to See Complete Forum and Search --> : Read & Write to an output file


WildBore
November 6th, 1998, 05:32 PM
This may sound trival but I just can't seem to figure it out on my own.


I have an output file that stores job infomation. Looks somthing like this:


[Job Info]

"Job#"

"Job Name"

[Calculations Type #1]

....10 colmuns of data....

..

..

..

[Calculations Type #2]

....8 columns of data....

..

..

and so on.


Is there a way to search for one of the labels and then start reading AND writing using that label as a base. I could use the Input and Write commands to read OR write to file but not both. I could use the Put and Get commands but they require a fixed row width. Please somebody help a newbie out!

Justin Decker
November 7th, 1998, 08:08 PM
It sounds like you're rewritting some funcitons already in the API. Heres what you wanna look up in the API viewer:

WritePrivateProfileSection

WritePrivateProfileString

GetPrivateProfileSecion

GetPrivateProfileString

WildBore
November 10th, 1998, 12:16 PM
Where can I find documentaion on how to use these routines.

Crazy D
November 11th, 1998, 02:17 AM
They're quite simple, but for some detailed description you can check the MSDN of our friend Bill's site. Just like any other API function there is (almost any).

The docu is for C++, but most of the things you'll read you'll understand, because it isn't that hard.

if you want a real good book about the Win32API for VB, check Dan Appleman's 'VB Programmer's Guide To The Win32API'. It's the bible for VB programmer's.