Menu

📰
0

Reddit - Please wait for verification

The Julia Language Subreddit·/u/ducks_over_IP·3 days ago
#8Zh5L4hv
Reading 0:00
15s threshold

I'm interested in picking up Julia as a scientific computing language, hopefully to replace my current system of Fortran-for-speed and Python-for-convenience. However, I'm getting hung up on its file handling. The issue is that in Julia, all of my options for file I/O look pretty confusing. The built-in read and write functionality seems to only take text input as strings, rather than as numeric types. The CSV package is powerful, but then it complicates things because it only returns a 'dataframe', whatever that is. Likewise, the documentation for CSV.write() says that it will "write a Tables.jl interface input to a csv file." All I want to do is read some numbers into a couple 1D arrays, do some math on them, then write them back out. I feel like I must be missing something stupidly obvious, because I don't understand why it seems so hard for Julia to do something that creaky old Fortran figured out decades ago.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More