If I have the following data in txt, how can I read the number 100?

question

#1
100    # the number 100

#2

If it’s just a raw string, try parse(Int, split(str)[1]).
If it’s in a file, use parse(Int, readuntil("filename.txt", '#'))

readdlm is a good general solution for this sort of application: readdlm("filename.txt")[1]


#3
thank u very much!!!