Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Reading from a file #50

Closed
mantielero opened this issue Apr 23, 2020 · 2 comments
Closed

[Question] Reading from a file #50

mantielero opened this issue Apr 23, 2020 · 2 comments

Comments

@mantielero
Copy link

I have some data stored as msgpack file in python. The file contains more than 250columns.

In order to read the file, do I need to create a type that holds the data? Is there a workaround for that? I mean, something that creates that type definition from the file structure.

@mantielero mantielero changed the title Reading from a file [Question] Reading from a file Apr 23, 2020
@jangko
Copy link
Owner

jangko commented Apr 23, 2020

var s = newFileStream("somefile.m", fmRead)
var x = s.toAny()

it will create a dynamic msgpack structure in memory.
then use msgpack2any API to interrogate the content as you wish.

@jangko
Copy link
Owner

jangko commented Apr 23, 2020

something that creates that type definition from the file structure

code generation? no

@jangko jangko closed this as completed Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants