Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 00:48:17 +0000



Post From: Read & parse CSV

[2020-01-06 17:37:28]
User907968 - Posts: 823
In the first post:
char* Buffer;
No memory is allocated to Buffer, you have simply declared Buffer as pointer to char.

You can use this function to check problem with sc.OpenFile:
sc.GetLastFileErrorCode()

Also, you could also use functions from SCString class for handling data that is read in:
ACSIL Programming Concepts: Working with SCString, Text Strings and Setting ACSIL Structure Member Name Strings

e.g.
SCString::ParseLines()
SCString::Tokenize()

Maybe some of this is helpful, or maybe you looked at these already.